如何将BindingSource.Filter应用于数值(C#)

时间:2015-10-10 10:50:13

标签: c# winforms datagridview filter bindingsource

我正在尝试使用绑定源为datagridview列应用大于过滤器,但它似乎无效

这是gridview的屏幕

enter image description here

这是代码

BindingSource bind = new BindingSource();
        bind.DataSource = dataGridViewKeywords.DataSource;

        bind.Filter = "AvgCompetitionScore > 30";

        dataGridViewKeywords.DataSource = bind.DataSource;

0 个答案:

没有答案