Datagrid binding two dropdown
Can someone tell me how I can populate a dropdown list based on the selection of another dropdown. Both my dropdowns are in a Datagrid and I need this to happen in the Edit Mode.
The details are like this....
I have a DataGrid with two cloumns, Country and Language. When the page first loads the first dropdown will have Country names and the second will have Languages for that country.
Now, I need to Edit this Grid. When I click on the Edit , and when i select a different country.....the corresponding lanaguages for that country has to be displayed in the second dropdownlist.
All the values in the dropdown are taken from a table.
Can someone tell me how to do it in c#.