Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click ' Attempt to commit the changes to the underlying row If Me.UltraGridRowEditTemplate1.CommitChanges() Then ' If we the changes were successfully made, close the template Me.UltraGridRowEditTemplate1.Close(False) Else ' Notify the user that we couldn't update the changes MessageBox.Show("Could not commit changes") End If End Sub
private void btnSave_Click(object sender, EventArgs e) { // Attempt to commit the changes to the underlying row if (this.ultraGridRowEditTemplate1.CommitChanges()) // If we the changes were successfully made, close the template this.ultraGridRowEditTemplate1.Close(false); else // Notify the user that we couldn't update the changes MessageBox.Show("Could not commit changes"); }