We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

slow deleting in DataBoundGrid

I''m deleting rows in DataTable which is the source to DataBoundGrid, can I freeze Grid not to redraw after each delete action? Currently I simply remove datasource and assign it back after deleting.

3 Replies

AD Administrator Syncfusion Team January 15, 2004 08:24 AM UTC

Try this. this.grid.BeginUpdate(); this.grid.Binder.SuspendBinding(); // your code to delete teh items... this.grid.Binder.ResumeBinding(); this.grid.EndUpdate(); //this.grid.Refresh(); //this may be needed to force a redraw


AD Administrator Syncfusion Team January 15, 2004 08:37 AM UTC

I''ve found: BeginUpdate & EndUpdate


AD Administrator Syncfusion Team January 15, 2004 08:43 AM UTC

thank you >Try this. > >this.grid.BeginUpdate(); >this.grid.Binder.SuspendBinding(); > >// your code to delete teh items... > >this.grid.Binder.ResumeBinding(); >this.grid.EndUpdate(); > >//this.grid.Refresh(); //this may be needed to force a redraw

Loader.
Live Chat Icon For mobile
Up arrow icon