AD
Administrator
Syncfusion Team
July 26, 2004 09:19 AM UTC
Is there an open edit going on when you try to zap your DataTable? If so, you might try calling
grid.CurrentCell.CancelEdit();
grid.Binder.EndEdit();
before you clear things.
If that does not resolve the problem, you might try setting
grid.BindingContext[grid.DataSource, grid.DataMember].Position = -1;
before clearing your table.
You could also try calling grid.CurrentCell.MoveTo(-1, -1);
AD
Administrator
Syncfusion Team
July 26, 2004 09:34 AM UTC
Thank you very much for your fast and efficient response. This reply helped me lot.
Thanks.