PDA

Click to See Complete Forum and Search --> : Listbox ClearSelection Problem


usamaalam
Dec 14th, 2004, 10:54 PM
Hi all,

I need to clear all selections in my listbox on a particular event and I used following code to do so.

departmentsListBox.ClearSelected();

But this is not working fine. One item is remain selected in the listbox. I need to clear all the selections.

Any ideas ??

Thanks

brown monkey
Dec 16th, 2004, 01:22 AM
listBox1.SelectedIndex=-1

?