Version

CommitChanges Method

Attempts to commit the changes made to the underlying row.
Syntax
'Declaration
 
Public Overridable Function CommitChanges() As Boolean
public virtual bool CommitChanges()

Return Value

True if the changes were committed.
Example
The following snippet attempts to save the changes made through the template to the underlying row, displaying a MessageBox if the attempt failed or closing the template if successful.

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");
}
Requirements

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

See Also