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

radgrid set filter to visible programmatically

2 Answers 116 Views
Grid
This is a migrated thread and some comments may be shown as answers.
øystein daaland
Top achievements
Rank 1
øystein daaland asked on 04 Aug 2010, 01:34 PM
I have a radgrid with AllowFilteringByColumn="True". Then i get filter visible for all columns. How can i set filter to not visible for a column programmatically?

Regards
daaland1972

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 05 Aug 2010, 05:21 AM
Hello Daaland,

You can try the following code snippet to disable filtering for a column from code behind.

C#:
(RadGrid1.MasterTableView.GetColumn("ColumnUniqueName") as GridBoundColumn).AllowFiltering = false;
 RadGrid1.Rebind();

Thanks,
Princy.
0
øystein daaland
Top achievements
Rank 1
answered on 16 Aug 2010, 12:15 PM
Something blocked me from using this property. When i just wrote the property and compiled despite AllowFiltering didnt show up in intellisense, it compiled with the property and now its working. Tx for giving me faith in using this property ;)
Tags
Grid
Asked by
øystein daaland
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
øystein daaland
Top achievements
Rank 1
Share this question
or