This is a migrated thread and some comments may be shown as answers.

hidecolumn

1 Answer 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
appdev
Top achievements
Rank 1
appdev asked on 12 Nov 2008, 12:04 PM
i have a grid that has autocolumn set to true. now after this i want to hide the very first column. could you please tell me the syntax for that? i don't want to display that because i have used that column as a groupbyfield .so now that i already have it on the group i don't need to display the column on the grid anymore. could you help please thank you.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 Nov 2008, 12:06 PM
Hello Duy,

You can use ColumnCreated event to access auto-generated columns:

if(e.Column.IsBoundToFieldName("YourFieldName"))
{
    e.Column.Visible = false;
}

Greetings,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
appdev
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or