如何在运行时动态合并表中的列.... [英] How to merge columns in a table dynamically at runtime.......
本文介绍了如何在运行时动态合并表中的列....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个动态创建列和行的表,问题是我必须合并这些列,如果表单元格中没有数据/控件,将不胜感激...
hi i am having a table where columns and rows are dynamically created the problem is i have to merge those columns if there is no data/control in the table cell any help would be appreciated...
推荐答案
使用td collspan =" 2,它将合并您的2个单元格
use td collspan="2" it will merge your 2 cell
您能否详细说明问题,因为列和行都是动态创建的...
让我们知道
您是否使用html表-谁在创建它&方式(即谁在写tr-td标签)
该表是否由诸如gridview之类的服务器控件创建...(即遍历databind/prerender/render事件中的数据)
Can you elaborate your question, since the columns and rows are dynamically created ...
Let us know
Are you using a html table - Who is creating it & how ( ie who is writing the tr-td tags)
Is the table gets created by some server control like gridview... ( i.e. iterate through the data in databind/prerender/render events)
这篇关于如何在运行时动态合并表中的列....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文