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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to remove/hide column heading for child grid

Thread ID:

Created:

Updated:

Platform:

Replies:

56132 Feb 9,2007 05:38 PM UTC Feb 12,2007 03:19 PM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 9, 2007 05:38 PM UTC

Hi,

I have displayed child grid using master detail relationship. I dont want child grid to display the column heading.....
Is it possible...? how can i achieve this....displaying child grid without column heading

Please help.

Thanks
Harshad

Administrator [Syncfusion]
Replied On February 9, 2007 06:30 PM UTC

Hi Harshad,

Use the HeaderText property of the GridColumnDescriptor to change the header text of the column. Here is a code snippet.

GridRelationDescriptor parentToChildRelationDescriptor = this.gridGroupingControl1.TableDescriptor.Relations["RelationName"];
parentToChildRelationDescriptor.ChildTableDescriptor.Columns["ColumnName"].HeaderText = String.Empty;

Best regards,
Haneef

Administrator [Syncfusion]
Replied On February 11, 2007 03:34 PM UTC

Hi,

I dont want just to remove the column headertext....but i want to remove the column header row completely.... Child grid should have only record cells and no column header row.

Please let me know to to achieve this

Thanks

Administrator [Syncfusion]
Replied On February 12, 2007 03:19 PM UTC

Hi Harshad,

You can turn ON/OFF the group of nested tables column header by using the NestedTableGroupOptions.ShowColumnHeaders property.

gridGroupingControl1.NestedTableGroupOptions.ShowColumnHeaders = false; //Hide the column header
gridGroupingControl1.NestedTableGroupOptions.ShowColumnHeaders = true; //Show the column header

Best regards,
Haneef

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.

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

;