简体   繁体   中英

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 :

在此输入图像描述

But it doesn't work in running as you can see .and i have to enter the whole linenumber to find it . 在此输入图像描述

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

Please go through documentation of 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.

You have set it to CheckedList , So the filter dropdown is represented as a checked list of filter items. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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