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.
Up arrow icon