AD
Administrator
Syncfusion Team
August 18, 2003 07:03 PM UTC
By clearing the DataSource, do you mean soing something like:
myDataTable.Rows.Clear();
to remove all rows from the underlying datatable that is the DataSource for the grid?
If so, before doing that, also try calling:
this.grid.CurrentCell.EndEdit();
this.grid.Binder.EndEdit();
You may have to condifitionally call these EndEdit by first checking grid.CurrentCell.IsEditing and grid.Binder.IsEditing.