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

How do you acces a cell with the column unique name

1 Answer 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
FQ
Top achievements
Rank 1
FQ asked on 25 Jul 2008, 08:37 PM
I also would like to now how to hide a column?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Jul 2008, 03:51 AM
Hello DT,

Check out the following code snippet to hide a column.
cs:
  protected void RadGrid1_PreRender(object sender, EventArgs e) 
    { 
        foreach (GridColumn column1 in RadGrid1.MasterTableView.RenderColumns) 
        { 
            if (column1.UniqueName == "LastName") 
            { 
               column1.Visible = false
            } 
        } 
    } 


You can also go through the following link and see if it helps.
Accessing cells and rows

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