'Declaration Public Overridable Function CommitChanges() As Boolean
public virtual bool CommitChanges()
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"); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2