Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
In UltraWinGrid. How to Enter to submit a beforerowupdate?
posted

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.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    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();
                }
            }

Children