AD
Administrator
Syncfusion Team
December 7, 2006 04:17 AM UTC
Hi Michael,
There is a property to control the removing the record from GridDataBoundGrid if the underlying datasource allows it. you can specify this by using Binder.EnableRemove property. You can subscribe the Binder.CurrentPositionChanged event at the top of the form and set Binder.EnableRemove to false for first record.
private void Binder_CurrentPositionChanged(object sender, EventArgs e)
{
GridModelDataBinder binder = sender as GridModelDataBinder;
binder.EnableRemove = binder.CurrentPosition != 0;
}
Best Regards,
Haneef