Winform Datagridview handle tab and arrow keys
问题 I want to handle the KeyDown event on the DataGridView cell. I use the following code to get the KeyDown event on cell: private void dgvData_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { var tb = (DataGridViewTextBoxEditingControl)e.Control; tb.KeyDown += cell_KeyDown; } But looks like I cannot handle some special keys like tab and arrows. Those keys does not go to my cell_KeyDown method. So I try to handle them in the DataGridView's KeyDown event: