在Gridview中过滤数据 [英] Filtered data in Gridview

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

问题描述



我已经从桌面应用程序转移到ASP.NET应用程序.

在Windows应用程序中,我有一个文本框.在文本框发生textchanged事件时,gridview元素正在更改.但是我不想在asp.net中使用相同的功能.


我有一个文本框和一个Gridview. 我将文本框的Autopostback属性设置为true,但是当我们离开文本框时会触发事件.我想实现类似在文本框中键入的内容,相关元素显示在Gridview中.

例如:假设我们有带有员工姓名列的gridview
现在,如果我在文本框中键入任何员工姓名,则必须在Gridview中显示相关的姓名.

等待回复.
谢谢Advanced

Hi,

I have shifted from desktop application to ASP.NET application.

In windows application, I have a textbox. On textchanged event of textbox, gridview elements are changing. But i do not want to use same functionality in asp.net.


I am having a text box and a Gridview. I make my textbox Autopostback property true but event fires when we leave text box. I want to implement something like as we type in the textbox, related elements are displayed in Gridview.

e.g.: Suppose we have gridview with employee name columns
Now, if i type any employee name in a textbox then related names must be displayed in Gridview.

Waiting for reply.
Thanks in advanced

推荐答案

在这里您可以:
ASP.NET的可过滤网格 [带有搜索选项(SearchableGridView)的ASP.NET GridView [ ASP.NET 2.0教程:GridView过滤 [ ^ ]

看看做类似事情的示例项目.
Here you go:
Filterable Grid for ASP.NET[^]
ASP.NET GridView with search option (SearchableGridView)[^]
ASP.NET 2.0 Tutorials : GridView Filtering[^]

Have a look at the sample project doing the similar thing.


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

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