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.

slow deleting in DataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 03:24 AM

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 03:37 AM

I''ve found: BeginUpdate & EndUpdate

Administrator [Syncfusion]
Replied On January 15, 2004 03:43 AM

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.

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.

;