Ticket Q136869
Visible to All Users

How to get the filter criteria?

created 16 years ago

Hi,
I am starting to believe that even manual filtering is not possible with your grid when using it with anything but the XPO.
And that's sad.
I have my ASPxGridView with an ObjectDataSource and have filtering enabled.
When the user selects some value from any filter combobox or from the filterrow, how can I have access to the Filter Criteria/Expression?
My idea is to catch the BeforePerformDataSelect event to pass the Grid's filter to my class before it performs the select command.
How can I do this?
Luis

Show previous comments (9)
DevExpress Support Team 16 years ago

    Hi Luis;
    I'm afraid, I cannot fix this issue without your sample illustrating it . If t is possible, please provide this sample.
    Thanks
    Kate.

      Hi Kate,
      I found the problem. It's my fault.
      In the HeaderFilterFillItems event I was using the e.AddValue() incorrectly.
      It's now working fine. Thanks again and sorry for the time lost with my mistake.
      Thanks.
      Luis

      DevExpress Support Team 16 years ago

        Hi Luis;
        I'm happy to hear that the issue is solved.
        If you will have another questions, please don't hesitate to ask them.
        Thanks
        Kate.

        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.