C# 向筛选器字符串添加多个参数

C# 向筛选器字符串添加多个参数,c#,devexpress,xtrareport,C#,Devexpress,Xtrareport,正在尝试向筛选器字符串添加多个参数 这个很好用 DeliveryTransactions.FilterString = "[IngredientName] = [Parameters.Ingredient]"; 但是,我想添加另一个字符串 [LocationName] = [Parameters.Location] 如何执行此操作?根据您的要求,使用和组合多个条件或或 DeliveryTransactions.FilterString = "[IngredientName] = [Param

正在尝试向筛选器字符串添加多个参数

这个很好用

DeliveryTransactions.FilterString = "[IngredientName] = [Parameters.Ingredient]";
但是,我想添加另一个字符串

[LocationName] = [Parameters.Location]

如何执行此操作?

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

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

使用

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