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

GGC: Hide Column Headers

Hi,

Can someone please advise the best way to hide the Column Headers of my grid grouping control? There are no nested tables in my grid - there will simply be 5 columns with a maximum of 3 - 4 rows. I do not want any column headers on this control, but the following lines of code do not seem to hide them:

this.grid.TableModel.Properties.ColHeaders = false;

this.grid.TableControl.Model.HideRows[0] = true;

Can anyone please tell me what the correct way of turning off column headers please?

Thanks,
Russell

2 Replies

HA haneefm Syncfusion Team April 16, 2007 03:45 PM UTC

Hi Russell,

You can try this code to hide a column header.

this.gridGroupingControl1.TopLevelGroupOptions.ShowColumnHeaders = false;

Best regards,
Haneef


RC Russell Coombes April 16, 2007 03:50 PM UTC

Ah! Perfect - thankyou!

Loader.
Live Chat Icon For mobile
Up arrow icon