Click here to Skip to main content
14,774,504 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi,
i want to generate dynamic textboxes in gridview on dropdownlist click.the dropdown list is not nested in the gridview.it is out of the gridview.
i want that when i select dropdown value 2 or 3 the three gridview rows generated on dropdown click.
Thanks
Naveen Sharma
Posted

So, what is the issue? In dropdownchange event, you need to add three rows to the datasource and it will be automatically shown in the grid on update. You can use updatepanel to update the gridview on postback done by dropdownlist.

For update panel, here you go:
UpdatePanel Control Overview[^]
UpdatePanel control[^]
UpdatePanel Class[^]
All you need to know with sample code is present and explained.
   

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