Hi ML,
Thank you for using Syncfusion products.
You can achieve the desired behavior by calling CurrentCell.EndEdit() and Binder.EndEdit() methods of GridDataBoundGrid Control. By handling the PrepareViewStyleInfo event, you can set the back color of that particular row. Below is the code snippet:
this.gridDataBoundGrid1.CurrentCell.EndEdit();
this.gridDataBoundGrid1.Binder.EndEdit();
this.gridDataBoundGrid1.PrepareViewStyleInfo += new Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventHandler(gridDataBoundGrid1_PrepareViewStyleInfo);
void gridDataBoundGrid1_PrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs e)
{
if (this.gridDataBoundGrid1.CurrentCell.ConfirmChanges(true))
{
e.Style.BackColor = Color.HotPink;
}
}
Here is the sample:
'>http://websamples.syncfusion.com/samples/Grid.Windows/Grid_WF_GDBGDataSourceModification_F73293/main.htm"> Please have a look into the above sample and let me know if it helps.
Regards,
Subhasheela R