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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

slow deleting in DataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

9888 Jan 15,2004 07:09 AM UTC Jan 15,2004 08:43 AM UTC Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On January 15, 2004 07:09 AM UTC

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.

Administrator [Syncfusion]
Replied On 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

Administrator [Syncfusion]
Replied On January 15, 2004 08:37 AM UTC

I''ve found: BeginUpdate & EndUpdate

Administrator [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;