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

Refersh GGC.Engine.SourceListSet

Thread ID:





131782 Jul 27,2017 02:41 AM UTC Jul 27,2017 11:06 AM UTC WinForms 1
Tags: GridGroupingControl
Asked On July 27, 2017 02:41 AM UTC

Dear Sir/Madam

I have a GGC which have relation , this relation have datasource : gridData.Engine.SourceListSet.Add("KHUVUC", lst);

when i add new object to list , how to refresh this SourceListSet to show new object

I refresh by define GGC again , i think it is not better way to refresh this SourceListSet 

Thank you for reading and helping me

Best Regard !

Mohanraj Gunasekaran [Syncfusion]
Replied On July 27, 2017 11:06 AM UTC

Hi Truong,   
Thanks for using Syncfusion product.   
Suggestion 1   
To update the grid when adding a new row in list, we can use the Table.Reload and Refresh method. Please refer to the given code example,   
Code example   
//Get the table for childtable.   
//Get the table for grand childtable   
Suggestion 2   
Also, we can bind the BindingList collection as a datasource for GridGroupingControl to reflect the changes automatically, when adding a new row at run time and not necessary to use the Reload and Refresh method. Please refer to the below code example and a sample,   
Code example   
BindingList<ParentList> parentTable = GetParentTable();   
BindingList<ChildList> childTable = GetChildTable();   
BindingList<GrandChildList> grandChildTable = GetGrandChildTable();   
this.gridGroupingControl1.Engine.SourceListSet.Add("MyParentTable", parentTable);   
this.gridGroupingControl1.Engine.SourceListSet.Add("MyChildTable", childTable);   
this.gridGroupingControl1.Engine.SourceListSet.Add("MyGrandChildTable", grandChildTable);   
Sample link: GridGroupingControl   
Mohanraj G  


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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