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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Updating data in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

41660 Mar 8,2006 03:21 PM UTC Mar 10,2006 03:50 AM UTC WinForms 3
loading
Tags: Grouping
Rasmus Fynbo
Asked On March 8, 2006 03:21 PM UTC

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); }

Administrator [Syncfusion]
Replied On 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.

Rasmus Fynbo
Replied On March 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?

Administrator [Syncfusion]
Replied On 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.

41660.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;