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

How can we find hidden RadGrid columns in Code

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kumar
Top achievements
Rank 1
Kumar asked on 09 Oct 2008, 06:05 PM

Hi,

 

How can we find hidden RadGrid columns in Code?.

Kumar

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 10 Oct 2008, 04:19 AM
Hi Kumar,

You can access the hidden column in the PreRender event as shown below.

CS:
protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
 
        foreach (GridColumn col in RadGrid1.MasterTableView.RenderColumns) 
        { 
            if (col.UniqueName == "ProductName") 
            { 
                col.Visible = true
            } 
        } 
  } 


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