Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to bind a dropdown list with asp gridview, but the gridview should not bind from a database table. I just only insert the template field of grid into a new table. kindly help me please.. thanks in advance
Posted
Comments
Not clear. Where are the data source of Grid and DropDownList?
MaroofQaiser 8-Jan-15 3:05am    
i don't want to bind the grid from any datasource. i just insert the dropdown text into table.
If the Grid don't have data, it cannot be shown.
MaroofQaiser 8-Jan-15 3:08am    
if the Grid don't have data, it can not be shown the template field?
No way, think of it once. You are going to show something inside a container, which itself does not have data.

Quote:
When i bind the grid with a dummy data set, it works perfectly but now i want to add a new row in a grid when i insert data in first row
This is what you need - Dynamically adding and deleting rows from ASP.NET GridView[^].
 
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