B
Byron
I'm looking for a way to deny a move from the current listbox item. For
instance, if the user is editing the record associated with the current
listbox item I want to deny a move within the listbox until they have saved
the changes. Is there any way to deny a move from the current item so the
SelectedIndexChanged event never fires no matter move the movement was
attempted? Whether the user uses the cursor keys or mouse to try and leave
the current item I want to be able to block the movement until certain
conditions are met. I suppose I could allow the move, check a condition and
send them back to the previous item if necessary, but I would rather prevent
the departure from the current item in the first place.
instance, if the user is editing the record associated with the current
listbox item I want to deny a move within the listbox until they have saved
the changes. Is there any way to deny a move from the current item so the
SelectedIndexChanged event never fires no matter move the movement was
attempted? Whether the user uses the cursor keys or mouse to try and leave
the current item I want to be able to block the movement until certain
conditions are met. I suppose I could allow the move, check a condition and
send them back to the previous item if necessary, but I would rather prevent
the departure from the current item in the first place.