Back to Devexpress

VGridControlBase.CancelUpdateFocusedRecord() Method

windowsforms-devexpress-dot-xtraverticalgrid-dot-vgridcontrolbase-4a86468c.md

latest2.0 KB
Original Source

VGridControlBase.CancelUpdateFocusedRecord() Method

Discards any changes made to focused record cells.

Namespace : DevExpress.XtraVerticalGrid

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

Declaration

csharp
public virtual void CancelUpdateFocusedRecord()
vb
Public Overridable Sub CancelUpdateFocusedRecord

Remarks

Call the CancelUpdateFocusedRecord method to discard changes made to the contents of a cell within a focused record. Note that this method is in effect until the record loses focus and if no cell is being edited at the moment. To discard any changes made to the currently edited cell and close the editor, call the VGridControlBase.HideEditor method.

The VGridControlBase.UpdateFocusedRecord method saves changes made to the focused record. After this method has been called, the CancelUpdateFocusedRecord method does nothing.

See Also

UpdateFocusedRecord()

FocusedRecordModified

VGridControlBase Class

VGridControlBase Members

DevExpress.XtraVerticalGrid Namespace