DataGridView
-
Hi! i have a problem! i have a datagrid and when the focu is on it and click on enter, the focu pass to the next row. How i do to take off it! I'd like to disable it to not pass to the next row. help me!! Thanks :)
-
Hi! i have a problem! i have a datagrid and when the focu is on it and click on enter, the focu pass to the next row. How i do to take off it! I'd like to disable it to not pass to the next row. help me!! Thanks :)
Hi, You could code the following
private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) e.Handled = true; }
Hopes this helps... Greetings Kaine -
Hi, You could code the following
private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) e.Handled = true; }
Hopes this helps... Greetings KaineThanks for help me! this code was great, it helped a lot. if (e.KeyCode == Keys.Enter) e.Handled = true; Thanks again!! :-D