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.
We are using GGC version 6.3.0.6 and we are looking for advice on the best way to refresh the grid when the underlying data has changed.
This is the method that we currently use but it does not seem to work all of the time:
public void UpdateRecordsWithBackendData(RecordsInTableCollection records) { foreach (Record record in records) { // Force end on the current record record.EndEdit();
SRSubhaSheela R Syncfusion Team July 10, 2008 11:54 AM UTC
Hi Kevin,
Thanks for your interest in Syncfusion products.
Rebindng Datatable you have to reset the DataSource before rebinding it. The best way to do this would be calling the grid.BeginUpdate() and grid.Binder.SuspendBinding() before you modify the underlying DataSource and call grid.Binder.ResumeBinding() and grid.EndUpdate() after that.
The SuspendBinding and ResumeBinding are two methods that allow the temporary suspension and resumption of data binding. You would typically suspend data binding if you want to make several changes to the data source without immediately updating the grid after each change.
For example, if you want to clear out all records in your data set and refill it with its original data, you can improve performance of this operation substantially if the grid does not need to immediately reflect every row change in the grid while the data set is filled.
BeginUpdate method suspends the painting of associated grid controls until the EndUpdate method is called.
Also, call grid.Binder.ResetHierarchyLevels() if you have changed the underlying data source and you had several relations added. Below is the code snippet: