在gridview字段上搜索 [英] searching on a gridview fields

查看:90
本文介绍了在gridview字段上搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

位置=总裁

如何搜索到gridview我的数据中有一个现有的总统"记录.必须只能是一个总裁职位.

我应该怎么办?谢谢!

我希望我的问题很清楚:)谢谢!

我正在使用vb作为语言

POSITION = President

How can I search to gridview that there is an existing "president" record in my data. The must be only one president position.

What should I do? thanks!

I hope my question is clear :) thanks!

I''m using vb as language

推荐答案

您应该真正搜索绑定到GridView的数据源.屏幕上的GridView可能包含与另一用户不同的数据,具体取决于传播更改的时间延迟.因此,如果可能,请搜索基础数据源.

GridView搜索控件 [
You should really search the DataSource that is bound to your GridView. The GridView on your screen could contain different data from the one on another users, depending on the time delay in propagating changes. So, if possible, search the underlying DataSource.

GridView-Search Control[^] might help with some ideas.


我也同意Manas Bhardwaj.

如果要在Gridview中搜索样本,也请查看这些内容.

带有搜索选项(SearchableGridView)的ASP.NET GridView [通用网格搜索和数据分页 [
Also I agree with Manas Bhardwaj.

Also take a look at these if you want samples for searching in Gridview

ASP.NET GridView with search option (SearchableGridView)[^]

Generic grid search and data paging[^]


这篇关于在gridview字段上搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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