Ticket Q516056
Visible to All Users

GridViewDataColumnSettings.AllowAutoFilter property does not working

created 12 years ago

Hello.
I need to disable the autofilter feature in GridView MVC extension in all the columns except one.
I set ShowHeaderFilterButton and AllowAutoFilter properties (see sample code below).
But despite this the auto filter button is shown in all grid columns.
Sample VS2012 project is attached.

C#
settings.Settings.ShowHeaderFilterButton = true; var col1 = settings.Columns.Add("Name"); col1.Settings.AllowAutoFilter = DefaultBoolean.False; settings.Columns.Add("Description").Settings.AllowAutoFilter = DefaultBoolean.False; var col3 = settings.Columns.Add("RoleType"); col3.Settings.AllowAutoFilter = DefaultBoolean.True; col3.Settings.HeaderFilterMode = HeaderFilterMode.CheckedList;

Answers

created 12 years ago (modified 11 years ago)

Sorry. I found solution in documentation.
I must use AllowHeaderFilter property instead AllowAutoFilter

    Comments (1)
    DevExpress Support Team 12 years ago

      Hi,
      Thank you for informing us that the issue has been resolved and for sharing your solution.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.