Click here to Skip to main content
15,891,895 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in gridview i have columns which contain dropdown and textboxes.On button click which is outside the grid i want to add a new row which will contain the same control same as of the previous row.and please mind that all i want ot do is on the click of button which is outside the grid
Posted
Comments
Nandakishore G N 18-Oct-13 5:18am    
paste the code what you have done till now?

 
Share this answer
 
Hi
You can't directly add new row in gridview from outside button.

But the best way after your button click, add a new row in your dataset or datatable and bind again your gridview. And set default values in new row for your controls(textbox, dropdown etc).
 
Share this answer
 
v2

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