Home › Forums › WinForms controls › Xceed Grid for WinForms › GridControl KeyDown event not raised on Tab › Reply To: GridControl KeyDown event not raised on Tab
I’m not sure why this works, but it does:
Add the following CurrentCellChanged event to the gridcontrol:
private static void grid_CurrentCellChanged(object sender, EventArgs e)
{
GridControl grid = (GridControl)sender;
grid.CurrentCell.EnterEdit();
grid.CurrentCell.LeaveEdit(false);
}
Now, even though no cell is being edited, whatever state the grid is left in allows it to catch Tab keydown events.
Imported from legacy forums. Posted by csperler (had 6399 views)