AD
Administrator
Syncfusion Team
January 19, 2005 06:49 AM UTC
By default, a GridControl does not show a pencil when you are editing a cell. A GridDataBoundGrid does though. And it shows the pencil until the cached changes for the row are saved to the DataSource when you leave the row. So, in a GridDataBoundGrid, then pencil means there a pending changes to the row that have not been saved to the DataSource. If you want to immediately save these changes as you leave teh cell (as opposed to saving them when you leave teh row), you can subscribe to the CurrentCellChanged event and do it there.
private void gridDataBoundGrid1_CurrentCellMoved(object sender, GridCurrentCellMovedEventArgs e)
{
if(this.gridDataBoundGrid1.Binder.IsAnyDirtyField())
this.gridDataBoundGrid1.Binder.EndEdit();
}
If you want to save the c