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. Image for the cookie policy date

Slow updating of GridGroupingControl

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

1 Reply

AD Administrator Syncfusion Team May 6, 2005 07: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

Loader.
Live Chat Icon For mobile
Up arrow icon