Hii

  • 12 years ago

    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...

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“An idiot with a computer is a faster, better idiot” - Rich Julius