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

Hiding the Columns

1 Answer 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jebamalai
Top achievements
Rank 1
Jebamalai asked on 17 Sep 2008, 05:46 AM
Dear All,

How to perform hiding of the columns in the Telerik Grid?

Kindly let me know the help documentation.

Thanks a lot in advance

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Sep 2008, 06:06 AM
Hello Jebamalai,

You can try iout the following code to hide columns in the grid.
cs:
protected void RadGrid1_PreRender(object sender, EventArgs e)  
    {  
        foreach (GridColumn col in RadGrid1.MasterTableView.RenderColumns)  
        {  
            if (col.UniqueName == "columnUniqueName")  
            {  
                col.Visible = false;  
            }  
        }  
    }  

You can also read through this documentation link to understand better about the visibility and rendering of columns.

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