Hi Francois,
Thanks for the interest in Syncfusion products.
You can remember the value of the cell in a grid when the cell is validating. You can use CurrentCellValidated event to know if a cell value has changed. Please refer the following code snippet that shows how we can achieve this behavior.
private void gridControl1_CurrentCellValidated(object sender, EventArgs e)
{
GridCurrentCell cc = this.gridControl1.CurrentCell;
string newValue = cc.Renderer.ControlText;
string oldValue = this.gridControl1[cc.RowIndex, cc.ColIndex].Text;
if (oldValue != newValue)
{
if(MessageBox.Show("[Value Changed to]: " +newValue + " [OldVaue ]: "+ oldValue+" Want to Save ?" ,"Validating Cells" , MessageBoxButtons.YesNo,MessageBoxIcon.Warning) ==DialogResult.Yes)
{
this.gridControl1.EndUpdate();
}
else
{
cc.RejectChanges();
this.gridControl1[cc.RowIndex, cc.ColIndex].Text = oldValue;
this.gridControl1.EndUpdate();
}
}
}
Please refer the sample in the below link that illustrates the above.
http://websamples.syncfusion.com/samples/Grid.Windows/F73484/main.htmPlease let me know if this is not what you needed.
Regards,
Asem.