如何使用BindingSource.Sort过滤字符串? [英] How to filter a String using BindingSource.Sort?

查看:315
本文介绍了如何使用BindingSource.Sort过滤字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我有一个TextBox和DataGridview ..,在那个DataGirdview中,我已经绑定了一些字符串,例如"XXX,ZZZ,YYY,AAA".

如果我在文本框中输入字符串A,则GridView应该仅显示"AAA",我该怎么办.

我在这里使用BindingSource.Sort=string.format();?

在此先感谢..

Hi All,


I have a one TextBox and DataGridview..in that DataGirdview I already bind some strings for example "XXX,ZZZ,YYY,AAA".

If I enter the string A in the TextBox then the GridView should display only "AAA" how can I do it.

I use BindingSource.Sort=string.format(); here?

Thanks in advance..

推荐答案

关注链接以进行详细了解:)

http://www.aspdotnetexample.com/2011/01/how- to-gridview-header-filtering-in.html [ ^ ]

http://www.aspdotnetcodes.com/Asp.Net_GridView_Filter.aspx [
Follow the links to learn in detail :)

http://www.aspdotnetexample.com/2011/01/how-to-gridview-header-filtering-in.html[^]

http://www.aspdotnetcodes.com/Asp.Net_GridView_Filter.aspx[^]


这篇关于如何使用BindingSource.Sort过滤字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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