update SunnyUI/Controls/DropItem/UIComboDataGridViewItem.cs.
UIComboDataGridView使用过滤功能时,字符串中包含 * ,需要加上'[]'进行转义 Signed-off-by: Schr0dingerCat <174683306@qq.com>
This commit is contained in:
parent
2647d135cb
commit
81e7b1f5d2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user