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

Hiding column in gird view

1 Answer 40 Views
GridView
This is a migrated thread and some comments may be shown as answers.
imee
Top achievements
Rank 1
imee asked on 16 Nov 2009, 12:32 PM
hi,
in my application i want to hide first column from GridView.

So , help me out in my problem

Thanks!

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 16 Nov 2009, 09:45 PM
Hi imee,

You can do this in the "DataLoaded" event of RadGridView.
There you can iterate through the columns and set "IsVisible" to false for the columns you want to hide.
Hiding the first column would look like this:
private void radGridView_DataLoaded(object sender, EventArgs e)
        {  
            radGridView.Columns[0].IsVisible = false;  
        

Hope this helps.

Greetings,
Anastasia
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
imee
Top achievements
Rank 1
Answers by
Missing User
Share this question
or