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

I have two dropdownlists say , Dropdownlist 1 and Dropdownlist 2, both of them need to be populated from the sql database inside an asp.net gridview . My Dropdownlist 1 shows me list of countries and Dropdownlist 2 shows list of states. So, depending upon the selection in dropdownlist 1 , dropdownlist 2 should populate from db. so my query is:

1. how to populate the dropdownlists from database inside the gridview?

2. how to populate the second dropdownlist based upon selection in the first dropdownlist?
Posted
Comments
member 8888995 29-Oct-13 3:06am    
Hi,
Can you use any third party tools? if allowed you can use 'RadGrid' This task becomes very simple with radgrid. just check 'http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx'

--
Thanks

1 solution

Hi,
check this link. it may help you.
How to cascading dropdownlist in gridview in asp.net?[^]

Thanks.
 
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