Click here to Skip to main content
15,913,685 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have a gridview in which i have some hidden columns. The requirement is when the user cliks on the gridview a check box should be displayed which should give an option of adding the columns to be displayed and also removing the existing columns. Please help me in providing some sample code.
Posted
Comments
Ankur\m/ 27-May-13 8:38am    
Did you search for sample code on web? Google for 'add remove columns gridview' to get started. And yes Google suggests you the search keywords as well.

1 solution

See the following CP article:
Show / Hide GridView Columns in ASP.NET[^]

Cheers,
Edo
 
Share this answer
 
Comments
komaliks 27-May-13 8:49am    
Hi, Can you please provide me an entire working solution please?
Joezer BH 27-May-13 10:23am    
It's not my article, but you can try asking Declan Bright there for it (if it's not already in the download zip)

However there are tons of examples for this kind of action, see this link for example:
google search

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