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

Hiding a column

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sushanth
Top achievements
Rank 1
Sushanth asked on 25 Aug 2008, 11:23 AM
Hai,

How can i able to hide a column from my Radgrid after the Rafdgrid is binded . The columns of the grid are not created at the design time. Its auto generated.

Is it possible for me to hide a particular column after binding the grid.

Thanks & Regards,
Susahnth Mathew.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Aug 2008, 12:22 PM
Hi,

You can try out the following code to hide a column in the Grid.
cs:
protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e) 
    { 
        if (e.Column.UniqueName == "Name") 
        { 
            e.Column.Visible = false
        } 
    } 

Princy.
Tags
Grid
Asked by
Sushanth
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or