网格视图中的网格视图 [英] gridview in gridview

查看:72
本文介绍了网格视图中的网格视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我" hv使用gridview来显示一些信息.具有名称,开始日期,结束日期等列的网格,但是当用户单击该网格视图中的名称之一时,我将显示详细信息.我对此进行hv数据库查询,我想在collapsiblePanelExtender中显示该信息,或者只是想显示可能在另一个网格中的详细信息,该如何显示.

I''hv used gridview to show some information. Grid having coloums like Name, startdate,enddate...... But when user click on one of the name in that gridview, I''hv to show detailed information. I''hv database queries for that and i want to show that in collapsiblePanelExtender or just i want to show that detailed information that may be in another grid, how can i show.

推荐答案

有几种方法,这完全取决于您自己的喜好.
如前所述,您可以在单独的GridView中显示更多详细信息.
您也可以用简单的数据填充简单的TextBoxes.

另一种方法是使用DataList控件.使用SelectedItem模板,您可以在DataList中显示所选行的其他信息.
请参阅 http://authors.aspalliance.com/aspxtreme/webforms/controls/allowinguserstoselectitemsindatalist.aspx [ ^ ]
There are several ways and it''s pretty dependent on your own likings.
As you mentioned you can show more details in a separate GridView.
You could also fill simple TextBoxes with the detailed data.

Another way is to use a DataList Control. With the SelectedItem Template you could show additional informations of the selected row in the DataList.
Refer to e.g. http://authors.aspalliance.com/aspxtreme/webforms/controls/allowinguserstoselectitemsindatalist.aspx[^]


您应将子Gridview放在父Gridview的模板内.

可编辑的嵌套GridView(多合一) [了解更多 [
You should put the Child Gridview inside the template of parent Gridview.

Editable Nested GridView (All-in-One)[^]

For more[^]


asp.net C#中Gridview内的Gridview [ ^ ]

它确实是一个很棒且简单的帮助.请看一下此链接.
Gridview inside Gridview in asp.net C#[^]

Its really a wonderful and easy help.. Have a look on this link.


这篇关于网格视图中的网格视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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