Ticket T178396
Visible to All Users

Is there any way to solve the problem with Int32 or DateTime columns when using the approach described in the K18434 article?

created 10 years ago

[DevExpress Support Team: CLONED FROM K18434: How to convert the CriteriaOperator to the corresponding filter string in order to use it for building SQL queries or for filtering the DataView]
Hi,
really nice function thanks for that one i was searching for this!
But now im facing another Problem. Some of the columns in my Grid has the type int32 or datetime. As you know i cant use the LIKE Operator fot These columns. Is there any way to solve this Problem whithout cast the columns to another data type in my data source?
Best regards

Show previous comments (4)
DevExpress Support Team 10 years ago

    Hello Janis,

    Is the Activation_Date property of the datasource item of the String type? I suggest that you make this property of the nullable type - DateTime? . This way, you will be able to assign null values to this property. At the same time, users will be able to choose the Is null operator in the filter editor, as shown in the screenshot. The Is null operator is applicable for DateTime columns.

    JG JG
    Janis Gattringer 10 years ago

      Hi Uriah,
      thanks for the answer that works fine for me.

      DevExpress Support Team 10 years ago

        Hi Janis,

        I am happy to hear that the problem is solved. Please do not hesitate to contact us again in the future.

        Answers approved by DevExpress Support

        created 10 years ago

        The problem was solved by using strongly typed columns.

          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.