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

How to hide columns

2 Answers 107 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 05 Mar 2009, 08:14 AM
I need in my application to hide some columns in the grid.

How can I hide columns?

Christian

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 05 Mar 2009, 08:25 AM
Hi Christian,

Try setting, either the Visible property to false or the Display property to false in order to hide the column.

ASPX:
<telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32"  Visible="false" 
    HeaderText="OrderID" SortExpression="OrderID" UniqueName="OrderID"
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID"  Display="false" 
    SortExpression="CustomerID" UniqueName="CustomerID"
</telerik:GridBoundColumn> 

Thanks,
Shinu.
0
Christian
Top achievements
Rank 1
answered on 05 Mar 2009, 08:33 AM
Hi Shinu,

it works

thank you!
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Christian
Top achievements
Rank 1
Share this question
or