如何在运行时在表中添加行 [英] how to add row at runtime in table

查看:60
本文介绍了如何在运行时在表中添加行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过按一个按钮在表中添加与上面相同的新行.

i want to add a new row same as above in table by pressing a button.
in cell there is textbox, uploading button, dropdownlist etc..

推荐答案

好,如果它是一个表,则需要使用TableRow创建一行,然后添加具有所需值的列.

我没有发现任何问题.试试吧.
单击按钮后,创建TableRow,然后添加现有表的最后一行的值.然后将此行添加到表中.完成!
Well, If it''s a table then you need to create a row using TableRow and then add columns to it with values as desired.

I don''t find an issue in it. Try it.
On button click, create TableRow and then add the values of the last row of existing table. Then add this row to the table. Done!


这篇关于如何在运行时在表中添加行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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