Add check to CheckedListBox based on query result
Posted on 2009-04-15
I'm sure this is very simple, but --> How the heck do I check an item as it's being added to the checkedlistbox via sqlreader?
Do While drReader5.Read()
If drReader5.Item("is_checked") = True Then
lstCompAgainstCH.SetItemChecked(Me.lstCompAgainstCH.SelectedIndex, True) --> this is the line that's killing me -> what is the index of the current value just added?
lstAgainstItemsCount = lstAgainstItemsCount + 1