I have a CheckedListBox
bound to a DataTable
. Now I need to check some items programmatically, but I find that the SetItemChecked(...)
method only accepts the item index.
Is there a practical way to get an item by text/label, without knowing the item index?
(NOTE: I've got limited experience with WinForms...)
o.ToString()
in my case returns"System.Data.DataRowView"
, so I think I have to usemyCheckedListBox.GetItemText(o)
... – Cariole