Syncfusion.Windows.Forms.Grid Namespace > GridControlBase Class : CurrentCellConfirmChangesFailed Event

CurrentCellConfirmChangesFailed Event

Occurs when the grid could not save changes made to the active current cell.
<DescriptionAttribute("Occurs when the grid accepted changes made to the active current cell.")>
Public Event CurrentCellConfirmChangesFailed As EventHandler
Dim instance As GridControlBase
Dim handler As EventHandler
AddHandler instance.CurrentCellConfirmChangesFailed, handler
[Description("Occurs when the grid accepted changes made to the active current cell.")]
public event EventHandler CurrentCellConfirmChangesFailed
The grid raises this event when the CurrentCell object's GridCurrentCell.ConfirmChanges method is called and its contents were modified and could not be successfully validated or saved back to the data source.

The GridCurrentCell.Exception and GridCurrentCell.ErrorMessage properties provide details why the operation failed. If you want to display a message box be sure to reset the the error state with GridCurrentCell.ResetError.

You can determine if GridCurrentCell.Deactivate was called stand-alone or as result of a GridCurrentCell.MoveTo call by checking the GridCurrentCell.IsInMoveTo property.

You can find out about the current cell's position by querying the GridCurrentCell.RowIndex and GridCurrentCell.ColIndex properties of the CurrentCell object in GridControlBase

See GridCurrentCell.MoveTo for a discussion about the order of events that you receive when the current cell is moved.


Syncfusion.Grid.Windows: 17.4460.0.39

See Also