On KeyDown event in the grid I check e.KeyValue. If it's Keys.Tab, I want to change do the same logic as if the user had pressed the enter key.
I do
dgDataEntry.PerformAction(BelowCell, False, False)
dgDataEntry.PerformAction(EnterEditMode, False, False) dgDataEntry.ActiveCell.SelectAll()
After the code goes to the cell below, the cursor then jumps to the cell to the right. It seems that the TAB still runs after my code. How can I supress the tab?
Hope I explained this right.
Hi,
You have to set e.Handled = true; to tell the grid that you handled the keystroke and therefore the grid should not.