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.
Unfortunately, activation email could not send to your email. Please try again.

Refersh GGC.Engine.SourceListSet

Thread ID:

Created:

Updated:

Platform:

Replies:

131782 Jul 26,2017 10:41 PM Jul 27,2017 07:06 AM Windows Forms 1
loading
Tags: GridGroupingControl
Truong
Asked On July 26, 2017 10:41 PM

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 07:06 AM

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   
this.gridGroupingControl1.Table.Reload();   
//Get the table for childtable.   
this.gridGroupingControl1.GetTable("MyChildTable").Reload();   
//Get the table for grand childtable   
this.gridGroupingControl1.GetTable("MyGrandChildTable").Reload();   
this.gridGroupingControl1.Refresh();   
   
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   
  
Regards,   
Mohanraj G  
 


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.

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.

;