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. Image for the cookie policy date

Preventing The List in Datasource Objects to appear as child table in Grid

Hi,

I am doing following:
gridGroupingControl.DataSource= new List();

if Items has an object called NestedItem inside it, it appears as nested table in my grid. How do i prevent this behaviour ?



1 Reply

MC Manickam Chidambaram Syncfusion Team January 21, 2011 09:33 PM UTC

Hi Ritesh,

Thanks for your interest in Syncfusion Products.

Your requirement of removing the nested items in the list collections when bind as Grid Grouping control’s DataSource can be achieved by removing GridGroupoingControl.TableDescriptor.Relations. Please refer the below code snippet.

[CodeBehind-C#]

//Page Load
//to remove the nested items
this.GridGroupingControl2.TableDescriptor.Relations.Clear();


Please try the above suggestion and let us know if any concerns.

Regards,
Manickam




Loader.
Live Chat Icon For mobile
Up arrow icon