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

3 posts, 0 answers
  1. Craig Broadhead
    Craig Broadhead avatar
    23 posts
    Member since:
    Jul 2010

    Posted 09 Mar 2012 Link to this post

    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. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 09 Mar 2012 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 12 Mar 2012 Link to this post

    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
Back to Top