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.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

97935 Jan 20,2011 12:00 PM Jan 21,2011 04:33 PM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
ritesh
Asked On January 20, 2011 12:00 PM

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 ?



Manickam Chidambaram [Syncfusion]
Replied On January 21, 2011 04:33 PM

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




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.

;