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

GridTreeControl: Hide a Column

How do I control the visibility of individual columns?


1 Reply

RA Rajasekar Syncfusion Team January 25, 2012 07:18 AM UTC

Hi AR,

You can control the visibility of the columns in the GridTreeControl by using the below code snippet,

//Hide
this.treeGrid.Model.ColumnWidths[3] = 0;
//Show
this.treeGrid.Model.ColumnWidths[3] = 80.0;

Sample: http://www.syncfusion.com/downloads/Support/DirectTrac/88696/TreeGridBinding652655451.zip

Please let us know if you have any queries.

Thanks,
Rajasekar



Loader.
Live Chat Icon For mobile
Up arrow icon