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.
Syncfusion Feedback

How to hide row headers of child table in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

69353 Oct 24,2007 11:46 PM UTC Oct 26,2007 10:40 AM UTC Windows Forms 1
loading
Tags: Grouping
Ravi
Asked On October 24, 2007 11:46 PM UTC

Hi,

How to hide row headers of child table in GGC. For example in "HierarchyView" sample, how do i hide "Orders" row headers for all the child tables. I looked the property "gridGroupingControl.TableModel.Properties.RowHeaders = false;" which hides all the rowheaders including parent and child tables. According to the sample i do not want to hide the Customers table rowheader.

Thanks,
Ravi.

Jeba S [Syncfusion]
Replied On October 26, 2007 10:40 AM UTC

Hi Ravi,

Thank you for posting query to us and the details.

You can access the Child Table using the GridTableModel. Then handle the QueryColWidth of the ChildTable and hide the RowHeader (which is Column zero) by setting the Size property to Zero.

Please refer this code snippets:

GridTableModel tbl = this.gridGroupingControl1.GetTableModel("ChildTable");
tbl.QueryColWidth += new GridRowColSizeEventHandler(tbl_QueryColWidth);

void tbl_QueryColWidth(object sender, GridRowColSizeEventArgs e)
{
if (e.Index == 0)
{
e.Size = 0;
e.Handled = true;
}
}

Please refer the sample which implements the above said feature:
http://websamples.syncfusion.com/samples/Grid.Windows/HideRowHeader/main.htm

Kindly let us know if you need any further assistance.

Thank you for using Syncfusion Products.

Best Regards,
Jeba.


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

;