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 updating of GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

28690 May 6,2005 02:16 PM May 6,2005 08:18 PM Windows Forms 1
loading
Tags: GridControl
Eddie Walton
Asked On May 6, 2005 02:16 PM

I''m having real problems updating the GridGrouping control with reasonable performance. I''ve tried various things but nothing seems to be having an effect. The grid has a DataTable as the source (approx 40 cols and 500 rows) and I batch up the updates so that I can apply them all at once. I update each row that has changed (between 1 and 10 fields can have changed) I''ve tried the following. 1) Using dataTable.BeginLoadData() and EndLoadData() 2) Using row.BeginEdit() and row.EndEdit() 3) grid.TableControl.Table.BeginEdit() followed by updating my datatable. 4) grid.Table.TableDirty = true (thought this might make the grid eventhandler ignore events) Any help would be greatly appreciated. Thanks

Administrator [Syncfusion]
Replied On May 6, 2005 08:18 PM

Hi Eddie, setting grid.Table.TableDirty = true is the right way to go about this. None of your other steps are needed. If you set Table.TableDirty = true and you make changes to the underlying datasource and don''t access any of the engines data (e.g. access Table.Records) and don''t make calls that force repainting the grid, the engine should be completely detached while you keep updating your data. All ListChanged events will be ignored. Only once you call Refresh() or access any of the data inside the engine the grid will update all pending changes. If that does not work for you, can you upload a sample project? Then we can spot why this might still be slow. Stefan > >I''m having real problems updating the GridGrouping control with reasonable performance. I''ve tried various things but nothing seems to be having an effect. > >The grid has a DataTable as the source (approx 40 cols and 500 rows) and I batch up the updates so that I can apply them all at once. I update each row that has changed (between 1 and 10 fields can have changed) I''ve tried the following. > >1) Using dataTable.BeginLoadData() and EndLoadData() > >2) Using row.BeginEdit() and row.EndEdit() > >3) grid.TableControl.Table.BeginEdit() followed by updating my datatable. > >4) grid.Table.TableDirty = true (thought this might make the grid eventhandler ignore events) > > >Any help would be greatly appreciated. > >Thanks

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.

;