使用左列标题创建动态表的最佳方式 [英] Best way to create dynamic table with left column header

查看:147
本文介绍了使用左列标题创建动态表的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建具有20行以上的动态表,并且可以根据用户输入更改列数。第一列是标题,其他列需要使用从Web服务返回的数据进行绑定。并且有几行可以编辑。当用户点击提交按钮需要验证更改的单元格并处理数据。
我已经创建了ASP.net表,并逐个添加了行和单元格。但是这不是可重复使用的方式,是否有任何替代方法创建可编辑的动态表与左列作为标题?

I'm creating dynamic table which having more than 20 rows and number of columns can be change according to user input. first column is header and other columns need to bind using data returning from web services. And there are few rows which can editable. when user click on submit button need to validate the changed cells and process the data. I have created ASP.net table and added rows and cells one by one. but this is not reusable way of doing, is there any alternative to create editable dynamic table with left column as header?

推荐答案

这里是一种方法,需要在给定的例子上进行一些定制,但可以使用逻辑。

Here is the one way to do this, need some customization on given example but logic can be used.

这篇关于使用左列标题创建动态表的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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