in detail, i want to edit a row.so when i finished editing info, i want to press enter to submit the info.now i have to click a nother cell to submit. i want to know how to use enter event.
Hi Steve,
You can call the Update method on the row to commit the changes from the grid to the data source for that row. Or, you can call UpdateData on the grid to commit all pending changes or all rows:
private void ultraGrid1_KeyPress(object sender, KeyPressEventArgs e) { var grid = (UltraGrid)sender; if (e.KeyChar == (char)13) { grid.ActiveRow.Update(); //grid.UpdateData(); } }
Thank you for your reply, i solved it .