【发布时间】:2013-10-04 16:55:24
【问题描述】:
试图向过滤字符串添加多个参数。
这很好用...
DeliveryTransactions.FilterString = "[IngredientName] = [Parameters.Ingredient]";
但是,我想添加另一个字符串
[LocationName] = [Parameters.Location]
我该怎么做?
【问题讨论】:
标签: c# devexpress xtrareport
试图向过滤字符串添加多个参数。
这很好用...
DeliveryTransactions.FilterString = "[IngredientName] = [Parameters.Ingredient]";
但是,我想添加另一个字符串
[LocationName] = [Parameters.Location]
我该怎么做?
【问题讨论】:
标签: c# devexpress xtrareport
根据您的要求使用And 组合多个条件或Or。
DeliveryTransactions.FilterString = "[IngredientName] = [Parameters.Ingredient] And [LocationName] = [Parameters.Location]";
【讨论】:
使用And 或Or
顺便说一句,初学者学习这个的好方法是使用 FilterControl:
http://demos.devexpress.com/aspxgridviewdemos/filtering/FilterBuilder.aspx
【讨论】: