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.

How to remove/hide column heading for child grid

Thread ID:

Created:

Updated:

Platform:

Replies:

56132 Feb 9,2007 12:38 PM Feb 12,2007 10:19 AM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 9, 2007 12:38 PM

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 01:30 PM

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 10:34 AM

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 10:19 AM

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.

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.

;