【问题标题】:Add more than one parameter to a FilterString向 FilterString 添加多个参数
【发布时间】:2013-10-04 16:55:24
【问题描述】:

试图向过滤字符串添加多个参数。

这很好用...

DeliveryTransactions.FilterString = "[IngredientName] = [Parameters.Ingredient]";

但是,我想添加另一个字符串

[LocationName] = [Parameters.Location]

我该怎么做?

【问题讨论】:

    标签: c# devexpress xtrareport


    【解决方案1】:

    根据您的要求使用And 组合多个条件或Or

    DeliveryTransactions.FilterString = "[IngredientName] = [Parameters.Ingredient] And [LocationName] = [Parameters.Location]";
    

    【讨论】:

      【解决方案2】:

      使用AndOr

      顺便说一句,初学者学习这个的好方法是使用 FilterControl:

      http://demos.devexpress.com/aspxgridviewdemos/filtering/FilterBuilder.aspx

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2021-11-11
        • 1970-01-01
        • 1970-01-01
        • 2011-11-21
        • 2020-09-12
        • 2011-04-01
        • 1970-01-01
        相关资源
        最近更新 更多