简体   繁体   English

不区分大小写的重音 devexpress 过滤器 gridview c#

[英]Case insensitive accent devexpress filter gridview c#

I'm using devexpress 19.1.我正在使用 devexpress 19.1。

When filter I want to not consider the accent, whenever I enter with á or a will display all records:当过滤器我不想考虑重音时,每当我输入áa将显示所有记录:

Image with accent:带有口音的图像:

重音图像

Image w/o accent:没有口音的图像:

不带重音的图像

From Support Center支持中心

You can create a custom function that removes all diacritic symbols from the specified string and use the GridView.SubstituteFilter event to inject this function into the active grid filter.您可以创建一个从指定字符串中删除所有变音符号的自定义函数,并使用GridView.SubstituteFilter事件将此函数注入到活动网格过滤器中。 This approach is demonstrated in the following example: How to make the auto filter row's filter accent insensitive .以下示例演示了此方法: 如何使自动过滤器行的过滤器重音不敏感

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

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