将列添加到表 [英] Add Columns to a table
本文介绍了将列添加到表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨朋友
我有一张桌子
HI friends
I have a table
Product Type Car Customer Name Anil
Product Name BMW Age 23
Address aa Address dd
Country India
产品类型为下拉列表,从下拉列表中选择汽车时,新的colum shld出现在客户NAme的顶部,例如型号,其余列向下移动
任何想法该怎么做
Product Type is dropdown, while selecting car from dropdown a new colum shld appear on the top of customer NAme like model number and the rest of the columns shld move down
any idea how to do this
推荐答案
这取决于您如何设计表格.最初隐藏要在某些事件触发时显示的行/单元格.产品类型的dropdownselectedIndexchanged
事件在此处显示隐藏的行.
That depends on how you designed the table. Initially hide the row/cells you want to show on some event fired. Here On dropdownselectedIndexchanged
event of product type show the hidden row.
嗨madhu
我想要的是在选择产品类型下拉菜单时在客户名称顶部添加新列
像这样
产品类型宝马汽车型号
产品名称宝马客户名称Anil
地址aa年龄23
国家/地区印度地址dd
hi madhu
what i want is while selecting a product type dropdown add a new column to the top of customer name
like this
Product Type Car Model BMW
Product Name BMW Customer Name Anil
Address aa Age 23
Country India Address dd
您为什么不使用Javascript来做到这一点?
动态创建CustomerName上所选下拉列表的副本.
why dont you use Javascript to do it ?
Dynamically create a copy of the selected Dropdown over the CustomerName.
这篇关于将列添加到表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文