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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GGC: Record.BeginEdit()

Thread ID:





70493 Dec 13,2007 09:04 AM UTC Dec 13,2007 01:00 PM UTC WinForms 2
Tags: Grouping
Patrick Cheng
Asked On December 13, 2007 09:04 AM UTC


I want to use the Record.BeginEdit() to update my GGC when data comes through (using BeginEdit(), the grid displays the changes much quicker than not). However, this will set the record to the current record. Is there a way to accomplish this and keep the performance, while not setting the record to current. I want the current record to change only by the user, not by the incoming data.

Many thanks.

Patrick Cheng
Replied On December 13, 2007 09:58 AM UTC

i have tried the following as well:

this.gridGroupingControl1.SourceListListChanged += new TableListChangedEventHandler(gridGroupingControl1_SourceListListChanged);

private void gridGroupingControl1_SourceListListChanged(object sender, TableListChangedEventArgs e)
e.ShouldResetCurrentRecord = false;
e.ShouldIgnoreReset = true;

however, this gets triggered AFTER the Record.EndEdit() is called.

Administrator [Syncfusion]
Replied On December 13, 2007 01:00 PM UTC

I think using BegEdit/EndEdit will only slow things down. I do not think adding it will speed things up even if the current record does not change.

If the changes are made to the datasource from outside the grid, the grid should just handle this changes automatically and you should not have to do anything (this is assuming your datasource is a IBindingList object as the grid listens to IBindingList.ListChanged to monitor and react to external changes to the datasource).

If you are making changes directly through the grid object, then doing record.BeginEdit and record.EndEdit slows things down.

Here is a little sample that has 2 buttons, one doing 500 updates directly to the datasource and the other doing 500 updates through the GridRecord. This second test case allows you to optionally call Begin/EndEdit. And using Begin/EndEdit is by far the slowest behavior.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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