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.
newDataSource contains a data table with a different column setup compared to the previous data table bound to the grid.
My problem is that I can't make the grid reload the values with the new data source correctly. The columns all show up OK but the content (cell values) is not correct.
I'm using stacked row headers and expression fields in the grid, and before rebuilding these (after changing the datasource) I do the following: gridTableDescriptor.Columns.Reset(); gridTableDescriptor.ResetExpressionFields(); gridTableDescriptor.ResetStackedHeaderRows();
GridGroupingControl 5.102.0.51 VS.NET 2005
What is the correct way of reloading data in the GGC after changing datasource to a new data table with a different column setup?
Please refer the GridGroupingRebind sample in the browser samples shipped with the product. [instal path]\Syncfusion\Essential Studio\4.4.0.51\windows\Grid.Grouping.Windows\Samples\FeatureSamples\GridGroupingRebind
This sample demonstrates the switching of datasources at runtime and how to reset the GridGroupingControl to its original empty state.
Best regards, Haneef
MLMårten LindJune 6, 2007 08:03 PM UTC
Thanks Haneef,
Now it's working as expected.
Couldn't find the GridGroupingRebind sample for my GGC version (5.102.0.51). Any idea where I can find the sample you're refering too?
Cheers /Marten
HAhaneefm Syncfusion Team June 6, 2007 08:57 PM UTC
Hi Marten,
Please find the attached sample below and let me know if this helps. GridGroupingRebind.zip
Best regards, Haneef
MLMårten LindJune 7, 2007 09:09 AM UTC
Hi again,
Thanks for the sample. My problem was solved when calling gridGroupingControl1.ResetTableDescriptor();