Hi how to retrieve checked list box value in win forms application using c# ?
just like in asp.net li.selectedvalue and li.selectedtext
is there any methods like this to get value and text individually?
Regards, Nagu
Hi how to retrieve checked list box value in win forms application using c# ?
just like in asp.net li.selectedvalue and li.selectedtext
is there any methods like this to get value and text individually?
Regards, Nagu
SelectedItem is the closest to what you're looking for, but since it's an object you have to cast it to the type of the items you put in the listbox to get additional properties.
If you are using the CheckedListBox control, you have the CheckedItems property.