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.

Hide Columns - child and grandChild

Thread ID:

Created:

Updated:

Platform:

Replies:

79281 Jan 28,2009 09:14 AM Feb 5,2009 03:29 AM ASP.NET Web Forms (Classic) 3
loading
Tags: Grouping
Administrator [Syncfusion]
Asked On January 28, 2009 09:14 AM

Desire to occult a column of grandchild that I load in execution time. for the initial table that reference parent not meeting difficulties. how I execute in child and grandchild?


Jisha Joy [Syncfusion]
Replied On January 29, 2009 04:20 AM

Hi Nabia,

Please try this code snippet to hide a column in nested table:


GridTableDescriptor td = this.gridGroupingControl1.GetTableDescriptor("ChildTable");
td.VisibleColumns.Remove("Name");


Please let me know if this helps.

Regards,
Jisha


Administrator [Syncfusion]
Replied On February 3, 2009 12:26 PM

I inserted the code as it was indicated and occurs this error:

'Syncfusion.Web.UI.WebControls.Grid.Grouping.GridGroupingControl' does not contain a definition for 'GetTableDescriptor'


Rekha P [Syncfusion]
Replied On February 5, 2009 03:29 AM

Hi Nabia,

Thank you for your interest in Syncfusion Products.

Please refer the below code snippet to hide the column in child table.

[C#]

GridTableDescriptor childTableDescriptor = (GridTableDescriptor)GridGroupingControl1.TableDescriptor.Relations[0].ChildTableDescriptor;
childTableDescriptor.VisibleColumns.Remove("childID"); // childID, ChildTable column name.


Also please refer the sample below which illustrates the above.

http://websamples.syncfusion.com/samples/Grid.Web/7.1.0.21/F79281_HideChildTableColumn/main.htm

Please let me know if this helps you.

Thanks,
Rekha


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.

;