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.
Hi
How do I get the GGC to show the updated content when I alter the datasource (fill new data into the datatables)... I can only get it to work by rebinding the datasource as in given example, but it seems to be both a costly and worng way to do it.
I feel I must be missing something really obvious!
Thanks..
private void BindData(Syncfusion.Windows.Forms.Grid.Grouping.GridGroupingControl grid, DataSet ds)
{
grid.SuspendLayout();
grid.DataSource = ds != null ? ds.Tables[0] : null;
grid.ResetTableDescriptor();
grid.TableDescriptor.Relations.Reset();
// Show group area
grid.ShowGroupDropArea = true;
grid.ResumeLayout(true);
}
ADAdministrator Syncfusion Team March 9, 2006 11:04 AM UTC
Hi Rasmus,
Any changes that are made to the data source(data table) that is bound to a GridGroupingControl will also get reflected in the GridGroupingControl by default. The gridGroupingControl.DataSource has to be rebound only when you want to assign a different data source.
Regards,
Calvin.
RFRasmus FynboMarch 9, 2006 02:45 PM UTC
Yes one should expect so, but it doesn''t happen. The grid only updates on rebinding to the same datasource. Any ideas, why this does not happen?
ADAdministrator Syncfusion Team March 10, 2006 03:50 AM UTC
Hi Rasmus,
The grid updates fine when the bound data table values are changed. Please refer the sample and let me know if you are trying something different.
Regards,
Calvin.