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

How can I put filer on certain column but not all columns

2 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Craig Broadhead
Top achievements
Rank 1
Craig Broadhead asked on 09 Mar 2012, 01:32 PM
Hi All,

I use datatable to connect gridview. After that I would like to have filer on column 1 but not all columns

.EnableFiltering = True
.MasterTemplate.EnableFiltering = True

This code switched the whold grid filter on.

Any idea to that?

Thanks

2 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 09 Mar 2012, 05:52 PM
Hello Craig,

You can use the AllowFiltering property of the column to do this. For exmaple
Hope that helps
Richard
Dim column As New Telerik.WinControls.UI.GridViewTextBoxColumn()
column.AllowFiltering = False
0
Richard Slade
Top achievements
Rank 2
answered on 12 Mar 2012, 12:47 PM
Hi Craig,

How did you get on with this? If it helped, please remember to mark as answer. If you need further help, just let me know
Richard
Tags
GridView
Asked by
Craig Broadhead
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Share this question
or