如何过滤数据网格 [英] how to filter the data grid
本文介绍了如何过滤数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
由于我不是编码员,所以我是学习者.我正在制作一个基于winform的软件,它将从Windows窗体中获取数据并保存在sql服务器中.我刚刚了解了以数据网格方式检索和向用户显示表数据的最佳方法.但是我找不到任何搜索和过滤工具.任何人都可以帮助我阅读最简单,最好的过滤搜索工具文章,我可以在我的小型应用程序中简单地实现它.
As i am not a coder i am a learner. I am making a software based on winform which will take data from windows forms and saves in sql server. I just learned about the best way to retrive and show the user the table data is in datagrid manner. But i cant find any search and filtering facilty in it. Can any one help me to go through the simplest and best article of filtering search facility, that can i simply implement in my small scale app.
Thanks
推荐答案
最简单的方法就是过滤数据源.刷新 SqlDataSource.FilterExpression属性
simplest way just filter the datasource. for refrence SqlDataSource.FilterExpression Property
http://www.dotneat.net/2008/12/03/DynamicDataGridViewFilteringInC .aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/system.windows.forms.bindingsource.filter.aspx [ ^ ]
在c#中搜索/过滤datagridview [ http://snipplr.com/view/62627/filter-a-datagridview/ [ ^ ]
http://stackoverflow.com/Questions/5413249/visual-studio-2008-c-sharp-can-i-search-for-data-in-dataviewgrid [
http://www.dotneat.net/2008/12/03/DynamicDataGridViewFilteringInC.aspx[^]
http://msdn.microsoft.com/en-us/library/system.windows.forms.bindingsource.filter.aspx[^]
Searching / filtering datagridview in c#[^]
http://snipplr.com/view/62627/filter-a-datagridview/[^]
http://stackoverflow.com/questions/5413249/visual-studio-2008-c-sharp-can-i-search-for-data-in-dataviewgrid[^]
如果您使用的是BindingSource
,则可以尝试使用其Filter
属性
If you are usingBindingSource
then you may try itsFilter
property
这篇关于如何过滤数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文