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. Image for the cookie policy date

How to hide row headers of child table in GGC

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.

1 Reply

JS Jeba S Syncfusion Team 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.


Loader.
Live Chat Icon For mobile
Up arrow icon