update SunnyUI/Controls/DropItem/UIComboDataGridViewItem.cs.

UIComboDataGridView使用过滤功能时,字符串中包含 * ,需要加上'[]'进行转义

Signed-off-by: Schr0dingerCat <174683306@qq.com>
This commit is contained in:
Schr0dingerCat 2022-08-31 08:10:33 +00:00 committed by Gitee
parent 2647d135cb
commit 81e7b1f5d2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Data;
using System.Windows.Forms;
@ -365,7 +365,7 @@ namespace Sunny.UI
filter = string.Join(" or ", strings);
}
}
filter = filter.Replace("*", "[*]");
if (dataGridView.DataSource is DataTable table)
{
table.DefaultView.RowFilter = filter;