过滤当前显示在网格上的数据 [英] to filter data currently displayed on the grid

查看:87
本文介绍了过滤当前显示在网格上的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够通过使用具有所有列名和文本框的组合框来过滤表中的数据
当我选择一个列名并在文本框中输入一个字符,然后单击搜索按钮时,它将过滤表并可以在网格上查看.

但是我也想过滤当前显示在网格上的数据,因此我添加了2个单选按钮以从网格和表格进行过滤以及从表格进行过滤.请您如何编写查询以过滤网格.

I am able to filter the data from table by using a combo box which has all column names and text box
when i select a column name and enter a character in text box and click on search button it filters the table and can be viewed on grid.

But i also want to filter data currently displayed on the grid so i have added 2 radio buttons to filter from grid and table and filter from table could you please me how to write query to filter grid.

推荐答案

看看
http://stackoverflow.com/问题/6837870/how-can-i-filter-a-datasource-before-applying-it-to-a-listview [ http://stackoverflow.com/questions/10074032/datagridview-filter-a-bindingsource-with-a-list-of-object-as-datasource [> http://stackoverflow.com/questions/5843537/filtering-datagridview-without-changing-datasource [^ ]
take a look at
http://stackoverflow.com/questions/6837870/how-can-i-filter-a-datasource-before-applying-it-to-a-listview[^]

http://stackoverflow.com/questions/10074032/datagridview-filter-a-bindingsource-with-a-list-of-object-as-datasource[^]

http://stackoverflow.com/questions/5843537/filtering-datagridview-without-changing-datasource[^]


这篇关于过滤当前显示在网格上的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆