Gridview行有多个记录 [英] Gridview row having multiple record

查看:114
本文介绍了Gridview行有多个记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个存储过程可检索员工信息-我不想编辑此存储过程,因为它已在网站上全局使用.
现在这是我的难题,如何在网格视图的一列中放置多个行记录. Gridview是否足够强大,足以应对我在下面的情况,或者我真的需要编辑存储过程或它的副本.谢谢
通过存储的proc进行记录检索

I have a stored procedure that retrieves employee information - I don’t want to edit this stored proc because it is globally use with in the website.
Here is now my dilemma, how can I put multiple row records in a column in the grid view. Is Gridview powerful enough to my scenario below or I really need to edit the store proc or my copy of it. Thanks
Record Retrieve by stored proc

Employe_ID  	Purchase ID  	Amount 
1	           0123456	          100
1	           012356  	 560
1	           012446	          560
1	           012126	          560
2	           011122	          100
2	           051122	          200

I want to achieve this in gridview
Employee ID	Purchase ID	  Total Amount
1	           012345                 1780
                    012346         
                    012446 
                    012126         
2	           011122                  3000
                    051122                      

推荐答案

是的.参见 http://forums.asp.net/t/1053747.aspx/1 [ ^ ]

它与Cell [x]有关. RowSpan
yes it can be done. see http://forums.asp.net/t/1053747.aspx/1[^]

It has to do with Cell[x].RowSpan


您还可以参考以下链接:

如何在GridView中合并具有相等值的单元格 [
You can also refer to the following link:

How to merge cells with equal values in a GridView[^]

Regards!
Aman


这篇关于Gridview行有多个记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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