The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator Syncfusion Team May 7, 2005 12:18 AM UTC
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