Click here to Skip to main content
15,123,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I have a checkedListBox Control,Where i have filled Some value from database.
When I checked any item of the CheckedListBox control, I need the Selected value.

Below is the code for the same, Please support...
 List<object> fields = new List<object>();
foreach (object itemChecked in chklbSection.CheckedItems)
                    DataRowView drv = itemChecked as DataRowView;



How can i get the Selected value from List object
Updated 17-Oct-13 8:38am

You need to check this Tutorial[^] especially concentrate on this line:

this.Text = checkedListBox1.Items[selected].ToString();

And also should follow:
how to get value of checked item from checkedlistbox[^]
You should use
SelectedItem.Text property if you want Text and
SelectedValue property if you want the Value.

Please see the below link for more details[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900