数据绑定到Gridview [英] Data Bind to Gridview

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

问题描述

Hai,



如何向gridview添加两个数据表我的意思是一个数据表记录作为gridview的列,另一个数据表记录为行

请帮助





提前感谢

解决方案

First of所有将数据提取到第一个数据表中。



之后,创建第二个数据表并手动添加列作为您的要求,并动态地给出第一个数据表的列名。



之后将数据提取到第二个数据表然后绑定网格视图。


对不起,但你的问题不明确足够...



请按照以下链接:

包含多个数据源的GridView [ ^ ]

http://www.developerfusion.com/thread/53174/tips-on-gridview-displaying-data-from-multiple- tables / [ ^ ]



您可能正在寻找嵌套网格:

如何在网格内显示网格 [ ^ ]

单个网格视图中的嵌套列 [ ^ ]

嵌套属性绑定 [ ^ ]

Hai,

How to add two datatables to gridview i mean one datatable records as column for gridview and another data table records as rows
pls help


thanks in advance

解决方案

First of all fetch data into first datatable.

After that, create second data table and add column manually as par your requirement and give name of column dynamically which comes from first data table.

After that fetch data into second data table and then bind grid view.


Sorry, but your question is not clear enough...

Please, follow below links:
GridView with multiple DataSources [^]
http://www.developerfusion.com/thread/53174/tips-on-gridview-displaying-data-from-multiple-tables/[^]

You are, probably, looking for nested grid:
How to show Grid Within Grid[^]
nested column in single gridview[^]
Nested Property Binding[^]


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

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