如何将下拉列表绑定到 Sharepoint 2007 中的网格视图? [英] How to tie a dropdown list to a gridview in Sharepoint 2007?

查看:50
本文介绍了如何将下拉列表绑定到 Sharepoint 2007 中的网格视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这应该是一件非常非常简单的事情,但出于某种原因,它让我无法理解.

This should be a really really simple thing, but for some reason it is just eluding me.

我想要一个 Sharepoint 页面,该页面将有一个与数据库查找表相关联的下拉列表.

I want a Sharepoint page which will have a drop down list that is tied to a database lookup table.

当一个项目被选中并且他们点击一个 GO 按钮时,我希望它更新一个也在页面上的 gridview.

When an item is selected and they click a GO button, I want it to update a gridview that is also on the page.

我正在寻找一个简单的方法 - 同时假设我是一个共享点白痴.顺便说一句,我正在使用 Microsoft Office Sharepoint Designer.

I'm looking for a simple how to - while assuming I'm a sharepoint idiot. BTW, I am using the Microsoft Office Sharepoint Designer.

谢谢,

我的需求其实很简单.我想使用下拉列表过滤查询结果.这曾经被称为主-从关系.

My need is actually very simple. I want to filter the results of a query using a drop down list. This used to be called a master - detail relationship.

例如,我的常规数据包含学校名称、应用程序名称以及应用程序运行的时间.因为每所学校可能有一百个申请,而且有 60 多所学校,所以我一次只想显示一所学校的信息.

For example, my regular data has school name, application name, and how long the application was running. Because there could be a hundred applications per school and there are 60+ schools, I only want to show one schools information at a time.

所以,我想在屏幕顶部放置一个下拉列表,其中包含学校列表.选择一个后,应该更新 gridview 以反映新的学校信息.

So, I want to put a drop down list at the top of the screen which contains the list of schools. When one is selected, the gridview should be updated to reflect the new schools information.

克里斯.

推荐答案

我目前使用绑定到一个共享点列表的下拉列表来过滤另一个共享点列表的数据视图.

I currently use a drop down tied to one sharepoint list to filter a dataview of another sharepoint List.

说明在这里:http://blogs.msdn.com/sharepointdesigner/archive/2007/03/05/asp-net-controls-filter-the-data-view.aspx

这篇关于如何将下拉列表绑定到 Sharepoint 2007 中的网格视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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