I have problem with chekedlistbox, pls can anyone help me!!!!
My prob is when i click on my datagrid view, my checkedlistbox was checked, and when i click on another record in grid my checkedlistbox item was selected but previous selected item is still in checked state which i dont want to happen that. I dont know how to unselect that item in list box. I tried different sort of things, but no help.
These are the things i tried but still am not able to solve
checkedListBox1.SetItemCheckState(checkedListBox1.Items.IndexOf(dtTable.Rows[row_index][5]),CheckState.Unchecked);
checkedListBox1.SetSelected(checkedListBox1.Items.IndexOf (dtTable.Rows [row_index][5]),false);
checkedListBox1.SetItemChecked(checkedListBox1.Items.IndexOf(dtTable.Rows[row_index][5]),false);
am not able to find where the prob is?? pls help me...
Enter your message below
Sign in or Join us (it's free).