I have a ListBox with several columns and rows.
I edit a cell and then according to the Language Reference:
If a cell is editable, a CellAction event occurs when the user finishes editing a cell. Row and Column are zero-based.
“Finishing editing” is defined as exiting the cell after clicking in it. Tabbing out of the editable cell or clicking another cell triggers this event. Clicking a checkbox in a checkbox cell also qualifies as “finishing editing”.
My problem is:
- If I click another cell the edited row is not selected.
- If I press return or tab, then the edited row is selected
Is there a way to prevent this selection of the row?
I’ve tried putting this:
Me.SelectedRowIndex = Listbox.NoSelection
in a lot of places but I couldn’t prevent the selection of the row.