You can get the updated value by
using AcceptedChanges event. Please refer to the following code.
this.gridControl1.CurrentCellAcceptedChanges
+= new CancelEventHandler(gridControl1_CurrentCellAcceptedChanges);
this.gridControl1.CurrentCellDeactivated
+= new GridCurrentCellDeactivatedEventHandler(gridControl1_CurrentCellDeactivated);
this.gridControl1.CurrentCellValidating
+= new CancelEventHandler(gridControl1_CurrentCellValidating);
//way1
void
gridControl1_CurrentCellAcceptedChanges(object
sender, CancelEventArgs e)
{
}
//way 2
void
gridControl1_CurrentCellValidating(object
sender, CancelEventArgs e)
{
}
//way 3
void
gridControl1_CurrentCellDeactivated(object
sender, GridCurrentCellDeactivatedEventArgs
e)
{
}
//Occurs before the
current cell switches into editing mode
this.gridControl1.CurrentCellStartEditing
+= new CancelEventHandler(gridControl1_CurrentCellStartEditing);
//Occurs when the
grid completes editing mode, i.e., when the active current cell exits the
editing mode
this.gridControl1.CurrentCellEditingComplete
+= new EventHandler(gridControl1_CurrentCellEditingComplete);
//Occurs when the
grid accepts changes made to the active current cell
this.gridControl1.CurrentCellAcceptedChanges
+= new CancelEventHandler(gridControl1_CurrentCellAcceptedChanges);
|