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

RadGrid.MasterTableView.Columns.Clear() and RadGrid..Columns.Clear() don't work

2 Answers 270 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jorge
Top achievements
Rank 1
Jorge asked on 14 Mar 2011, 02:29 PM
Good morning!

My version of the telerik is RadControls for ASP.NET Ajax 2010 Q3.

I'm trying to remove columns that are inserted with the command gridProntuarios.MasterTableView.Columns.Add() of grid through the command "gridProntuarios.MasterTableView.Columns.Clear();" and
"gridProntuarios.Columns.Clear();" but don't work.

What would the solution for this trouble?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 14 Mar 2011, 03:26 PM
Hello,

You have posted your question in the WinForms forums. To gain a quicker, more accurate response, please re-direct your question to the asp.net ajax forums where I'm sure you will find the help that you need.
Regards,
Richard
0
Mira
Telerik team
answered on 17 Mar 2011, 11:06 AM
Hello Richard,

If you modify the columns collection of the RadGrid during run-time, you should set the EnableColumnViewState property to False.

Please examine the Changing the grid structure dynamically on postback help topic for additional information.

Best wishes,
Mira
the Telerik team
Tags
GridView
Asked by
Jorge
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Mira
Telerik team
Share this question
or