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.

Binder in GridGroupingControl

Thread ID:





21448 Nov 10,2004 01:00 PM Nov 11,2004 03:05 PM Windows Forms 4
Tags: GridControl
Administrator [Syncfusion]
Asked On November 10, 2004 01:00 PM

I''m using the GridGroupingControl the first time and looking for the Binder property. Exists an equivalent class or do we have to use the BindingContext directly? I''m often using the Binder.Suspend/ResumeBinding() methods in the GDBG and I''ll port the code to the GridGroupingControl. Thanks Thomas

Administrator [Syncfusion]
Replied On November 10, 2004 02:44 PM

Hi Thomas, grouping control has no Binder property. To achieve similar results to Binder.Suspend/ResumeBinding() you should set groupingControl.Table.TableDirty = true. This tells the grid that the table is dirty and subsequent ListChanged events can be ignored. Once the grid gets displayed or you access records (e.g. call Record.SetCurrent) the table will be categorized. Stefan

Administrator [Syncfusion]
Replied On November 11, 2004 01:12 AM

Hi Stefan Thanks for you response. In the GDBG, I''m using the following code when I replace the data in the grid: this.grdData.BeginUpdate() this.grdData.Binder.SuspendBinding() -- replace the data by merge into the DataSet this.grdData.Model.ResetVolatileData() this.grdData.Binder.ResumeBinding() this.grdData.EndUpdate() this.grdData.Refresh() What is the correct way in the GroupingControl when I''m updating the whole data. Thanks Thomas

Administrator [Syncfusion]
Replied On November 11, 2004 10:24 AM

Try this: this.grdData.BeginUpdate() this.grdData.Table.TableDirty = true -- replace the data by merge into the DataSet this.grdData.EndUpdate(false) this.grdData.Refresh() In earlier versions there was no BeginUpdate / EndUpdate methods on GridGroupingControl. You can then just call this.grdData.TableControl.BeginUpdate() instead. Stefan

Administrator [Syncfusion]
Replied On November 11, 2004 03:05 PM

Thanks Stefan


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.