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

Make column Invisible in Radgrid

1 Answer 233 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Atchut
Top achievements
Rank 1
Atchut asked on 17 May 2012, 04:36 AM
Hello,

I am making column invisible like this in code behind.

But the header is still displaying.

gridDataItem("EPrice").Visible = False

How to make header column and column invisible.

TIA

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 17 May 2012, 05:16 AM
Hello Atchut,

Try hiding the column in Prerender event as shown below.
C#:
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
  RadGrid1.MasterTableView.GetColumn("EPrice").Display = false;
}

Thanks,
Shinu.
Tags
Grid
Asked by
Atchut
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or