Click here to Skip to main content
15,885,860 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have a Drop Down and a Gridview , based on the selected value in drop down I need to bind the appropriate date to the Gridview. I have declared the Gridview columns already in the Gridview design (autogeneratecolumns= false). Now I need to add one more column to the gridview. How can i add this new column to gridview?
Posted
Comments
Thanks7872 29-Oct-13 0:57am    
I have declared the Gridview columns already in the Gridview design

Why? It will be much easier if you remove it. You have dynamic fields than why to define fields in advance?

 
Share this answer
 
You can check the below links
http://www.aspsnippets.com/Articles/Dynamically-add-BoundField-and-TemplateField-Columns-to-GridView-in-ASPNet.aspx[^]

Dynamic columns addition to GridView[^]

A simple search would have fetched many related links

Hope this helps
 
Share this answer
 

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