Problem using Enter key with DataGridView control
Posted on 2008-06-19
I have a DataGridView control that is not bound to any underlying data, as I handle that manually.
If I enter some text into a DataGridView cell and press Tab key the focus changes to the next cell and if I also enter some text into that cell a new Row is automatically added to the control.
If however I enter some text into a DataGridView cell as before but press Enter key instead of Tab, the contents of that cell is basically lost and no new row is added.
I was hoping to create a new Row whether I press a Tab or Enter keys. Is that possible and if so, how can I do that?