Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
my question:5 check boxs and 1gridview.
EX:these are check boxes like
.sid
.sname
.address
.phone
.location
if i checked sid and sname the data should display in gridview
and data should populate from database (sql server ).
Ex:This is gridview output should display like this...
sid sname address phone location
1 ramu
2 ravi
3 raju
what are the items in checkboxs all should display in gridview columns heading and only checked checkbox items data should display in gridview unchecked checkbox items it should display column but with no data....
Posted
Updated 25-Dec-11 23:52pm
v4
Comments
Suman Zalodiya 26-Dec-11 1:56am    
Your question is not clear. Pease can you clarify it.

Thanks
Suman
Nigam Patel 26-Dec-11 4:55am    
do means if we check the checkbox at that time it will add/Remove the Column from the gridview ?

Learn here[^] since you are unable to understand others.
Do it now!
(see, not pleasant to be ordered around is it).
 
Share this answer
 
on the time of check box true at that time you will get the check box value, according to that value write store procedure and select data from your database and bind with grid view.
 
Share this answer
 
Comments
Member 7913302 26-Dec-11 7:39am    
am not getting please create StoreProcedure for this solution and submit
Dalek Dave 26-Dec-11 7:43am    
Don't be so rude, do your own work, people here volunteer their help, they are not here to take orders from you.
Member 7913302 26-Dec-11 7:44am    
am sorry for that,
thanks
Amod Kumar Jaiswal 26-Dec-11 7:43am    
u want to select only this record
.sid
.sname
.address
.phone
.location
or n number of records from database.

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