Listbox selected row

Is there another way to unhighlight the selected row in a listbox other than setting list index to -1?

fiddle with CELLBACKGROUNDPAINT

listbox.selected(row) = false

Why ?

I have 2 list boxes and when I click in the alternate one I want the previous to not show any highlighted rows.

listbox.selected(row) = false nearly worked but it also unhighlighted the one I clicked in as well??

I tried putting listbox.selected(listindex) = false in the lost focus event but no effect??

[quote=410767:@Martin Fitzgibbons]I have 2 list boxes and when I click in the alternate one I want the previous to not show any highlighted rows.

listbox.selected(row) = false nearly worked but it also unhighlighted the one I clicked in as well??[/quote]

Are you using the name of your instance in that code?

Yes, AcrossLBox.selected(listindex) = false

sorry, fixed. I was working in celllostfocus by mistake