Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 8-Jan-16 18:23pm
v2
Comments
Maciej Los 9-Jan-16 5:12am    
What have you tried? Where are you stuck?

1 solution

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

Good luck!
 
Share this answer
 
Comments
JOTHI KUMAR Member 10918227 12-Jan-16 1:19am    
i don't know how to do just tell me the logic.i don't want code bcz in the dynamic grid have binded value as well as empty textbox also .so i need a logic and example code or reference

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900