Home Forums WinForms controls Xceed Grid for WinForms Problem adding data to Grid/Datatable Reply To: Problem adding data to Grid/Datatable

User (Old forums)
Member
Post count: 23064

Try this (untested code): <code>insertionRow.KeyDown += new KeyEventHandler(insertionRow_KeyDown);
private void insertionRow_KeyDown(object sender, KeyEventArgs e) {
if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Return) {
insertionRow.BeginEdit();
insertionRow.EndEdit();
}
}</code>

Imported from legacy forums. Posted by Tommy (had 207 views)