简体   繁体   English

包含过滤器搜索不适用于devexpress gridview c#

[英]Contains filter search doesn't work for devexpress gridview c#

I have a grid view column called LineNumber i set the autofiltercondition to contains .as you can see here : 我有一个名为LineNumber的网格视图列,我将autofiltercondition设置为contains如下所示:

在此输入图像描述

But it doesn't work in running as you can see .and i have to enter the whole linenumber to find it . 但它不能像你看到的那样在跑步中起作用。我必须进入整个linenumber才能找到它。 在此输入图像描述

Should i set something else property ?as you can see i have to enter 1.1/2... to find the line,but i need something like this %my text% in sqlserver 我应该设置其他属性吗?你可以看到我必须输入1.1/2...才能找到该行,但我需要这样的东西, %my text%在sqlserver中

Please go through documentation of AutoFilterCondition Enumeration 请查看AutoFilterCondition Enumeration的文档

Enumerates the comparison operator types for the filter conditions created for specific columns via the automatic filtering row . 枚举通过自动过滤行为特定列创建的过滤条件的比较运算符类型。

This will work if you have either enabled AutoFilter Row functionality or filter criteria in code. 如果您已在代码中启用了自动筛选行功能或筛选条件,则此方法将起作用。

For the FilterPopupMode Enumeration - Contains values that specify the filter dropdown style for grid columns. 对于FilterPopupMode枚举 - 包含指定网格列的过滤器下拉样式的值。

You have set it to CheckedList , So the filter dropdown is represented as a checked list of filter items. 您已将其设置为CheckedList ,因此筛选器下拉列表表示为筛选项的已检查列表。 In this mode, an end-user can select more than one item simultaneously. 在此模式下,最终用户可以同时选择多个项目。 When the dropdown window is closed by clicking the OK button, the View will display those records that contain the checked values 单击“确定”按钮关闭下拉窗口后,“视图”将显示包含已检查值的记录

Hope this information help you.. 希望这些信息能帮到你..

References: 参考文献:
Autofilter Contains 自动过滤器包含
AutoFilter Row problem with LIKE conditions 具有LIKE条件的AutoFilter Row问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM