带动态列的中继器 [英] repeater with dynamic column
本文介绍了带动态列的中继器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
如何在asp.net c#中的中继器中创建动态多列.
请参阅下面的结构仅供参考.
Hi
How can I make dynamic multiple columns in repeater in asp.net c#.
please see below structure just for reference.
| year | year | year | year
name | amount | amount | amount | amount
name | amount | amount | amount | amount
name | amount | amount | amount | amount
name | amount | amount | amount | amount
就我而言,我可能有2或3或4,或者没有.要比较的产品,因此我需要显示要比较的具有多个功能的多个产品.
参考网站: http://www.biocompare.com/ProductCompare.aspx?i=2936820, 79743,438523,0000 [ ^ ]
in my case I might have 2 or 3 or 4 or any no. of products to be compared so I need to display multiple products with multiple features to be compared.
ref. site: http://www.biocompare.com/ProductCompare.aspx?i=2936820,79743,438523,0000[^]
thanks in advance.
推荐答案
您看过吗?
使用C#代码动态地使用ASP.Net中继器 [ ^ ]
[更新]
实际上,可以将数据表绑定到转发器之前先对其进行透视.
透视数据表 [
Have you taken a look at this?
ASP.Net Repeater dynamically using C# code[^]
[UPDATE]
You can actually pivot the datatable before binding it to the repeater.
Pivoting a DataTable[^]
After you made your pivot on the datatable, you can now create your repeater in your code behind. Refer to the first URL on how to do it.
这篇关于带动态列的中继器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文