I am trying to do some special handling of selections with the SelectionChanging and SelectionChanged events.
I am using the:
ListBoxSelectionMode = SelectionMode.MultiExtended;
My SelectionChanged code looks something like this (simplyfied):
if ( e.Range.Top == 2 )
e.Cancel = true;
Now the problem is that if my previous selection was say row 3 and 4 and I click row 2. The previous selection is cleared. I'd like to just ignore the click on row 2 and keep the valid selection (3,4).
I am sure that must be something simple.