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

Hide columns

3 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anzar
Top achievements
Rank 2
Anzar asked on 04 Dec 2012, 06:18 AM
hi,
how to hide columns by uisng ColumnElement?

Thanks & Regards
Anzar.M

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Dec 2012, 06:34 AM
Hi,

I suppose you want to hide a column in radgrid. Here is the sample  code.
C#:
protected void RadGrid2_PreRender(object sender, EventArgs e)
{
    RadGrid2.MasterTableView.GetColumn("UniqueName").Visible = false;
}

Thanks,
Shinu.
0
Anzar
Top achievements
Rank 2
answered on 04 Dec 2012, 08:46 AM
Hi Shinu,
I want to hide columns while exporting  by uisng ColumnElement.

Thanks & Regards
Anzar.M
0
Kostadin
Telerik team
answered on 06 Dec 2012, 04:57 PM
Hi Anzar,

I suggest you to check out the following help topic where it is described how to hide columns when exporting a grid.

Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Anzar
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Anzar
Top achievements
Rank 2
Kostadin
Telerik team
Share this question
or