筛选数据集返回到Gridview [英] Filtering DataSet Return to Gridview

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

问题描述

我很新,最近才开始使用代码,尽管我喜欢它的每一步都有些不知所措,所以如果我觉得没有道理,请您多多包涵.

通过使用VS08编写ASP/VB项目,我使用了内置的SQL并制作了所需的表.我已经制作了各种数据适配器,从表中提取数据,到现在为止还没有任何问题可以使它完成我需要的工作.

我目前需要过滤从一个适配器显示到页面上网格"视图的结果.

GridView仅在页面上,并且可以通过母版页上的链接进行访问.我尝试使用许多不同的选项来处理此问题,例如在加载时在GridView页面上或适配器本身后面和后面的链接按钮代码中.

我已经对此进行了广泛的阅读,似乎无法破解.我仍然相信适配器的FillBy语句对我来说是正确的.我有一列填充2个单词,如果您想知道我在过滤什么,请打开和关闭.

此实例我将需要使用OPEN值显示表中的所有数据.

I''m very new and just recently started working with code and although i love it am a bit overwhelmed with each step so if i don''t make sense please forgive me i apologies early.

Using VS08 writing an ASP/VB project, I have used the built in SQL and made tables needed. I''ve made various data adapters pulling from the tables and till now have had no issues getting it to do what i need.

I currently need to filter the results displayed from one adapter to the Grid view on a page.

The GridView is on a page alone and is accessed by a link from a master page. I have tried to handle this using many different options like ... on the GridView page at load or at the link button code behind and in the adapter itself.

I have read extensively on this and just cant seem to crack it. I still believe i am on the right path with the FillBy statement inside the adapter. I have one column that populates 2 words, Open and closed If your wondering what i am filtering.

This instance i will need to show all the data in the table with the OPEN value.

推荐答案

请尝试使用Dataset.Tables [0] .rows.find为您需求
Please try with Dataset.Tables[0].rows.find for your requirement


我认为我们必须在VB中使用开括号,例如

根据您的需求找到Dataset.Tables(0).rows.
i think we have to use open brackets in VB like

Dataset.Tables(0).rows.find for your requirement


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

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