如何使用checkboxlist在gridview asp.net中创建动态列标题 [英] how to create dynamic column header in gridview asp.net using checkboxlist

查看:85
本文介绍了如何使用checkboxlist在gridview asp.net中创建动态列标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

如何在gridview中创建动态列标题。





要求: -

这里我有一个checkboxlist控件。如果我选择了多个值,那么我的girdview会为所有选定的值创建列标题和一个文本框。如果我选​​择3个值,那么我需要三个列标题和三个文本框。



例如:

在我的复选框列表中我有多个价值

*衬衫,* T恤,*裤子


$ b如果我选择衬衫和裤子,$ b以上复选框



我的数据集我有一个像id,code,shirt,pant的值

In默认ID和代码是强制性的,衬衫,T恤和裤子是可选的使用复选框列表的可选填充我需要一个文本框。这是我的requiremnt.can任何人帮助我。

hi to all,
how to create dynamic Column header in gridview.


Requirements:-
Here i have one checkboxlist control. if i selected multiple value then my girdview create column header and one textbox for all selected values.if i select 3 values then i need three column header and three textbox.

For eg:
In my checkboxlist i have multiple value
* Shirt , * T-shirt ,* pant

above check box if i select shirt and pant

my dataset i have a value like id ,code,shirt,pant
In default id and code are mandatory and shirt,t-shirt and pant are optional for using checkbox list for that optional filled i need a textbox. that is my requiremnt.can anybody help me for this.

推荐答案

找到解决方案的最佳方法是使用Google [ ^ ]或 SearchBox [ ^ ]位于本网站的右上角。



祝你好运!
The best way to find a solution is to use Google[^] or SearchBox[^] on the right-top corner of this site.

Good luck!


这篇关于如何使用checkboxlist在gridview asp.net中创建动态列标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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