I Have two DropDownList in gridView, first one is Country and second one is City, I fill the country DropDownList in (OnRowDataBound), then what I want, when the user selected value from country dropDownList, the City DorpDownList must fill with
value of Country Selected,
I tried the command name and command arguments, but the command name Or command argument not show in attributes of dropdownlist?
Member
49 Points
121 Posts
two dropDownList in gridview country and city, Change city value when selected value from Country...
Mar 04, 2017 08:44 AM|Khalid Salameh|LINK
Hello,
I Have two DropDownList in gridView, first one is Country and second one is City, I fill the country DropDownList in (OnRowDataBound), then what I want, when the user selected value from country dropDownList, the City DorpDownList must fill with value of Country Selected,
I tried the command name and command arguments, but the command name Or command argument not show in attributes of dropdownlist?
how can I do this please?
Here is My Code
All-Star
52503 Points
15665 Posts
Re: two dropDownList in gridview country and city, Change city value when selected value from Cou...
Mar 04, 2017 09:44 AM|oned_gk|LINK
Suwandi - Non Graduate Programmer
Member
49 Points
121 Posts
Re: two dropDownList in gridview country and city, Change city value when selected value from Cou...
Mar 04, 2017 10:14 AM|Khalid Salameh|LINK
oned_gk Thank you very much.
I tried it and it works successfully ,, but please, if you can explain what is the NamingContainer do? what is the benefits? when should be used?
All-Star
52503 Points
15665 Posts
Re: two dropDownList in gridview country and city, Change city value when selected value from Cou...
Mar 04, 2017 11:54 AM|oned_gk|LINK
I have simplify the codes, the dropdown namingcontainer is the gridviewrow
the dropdown is inside gridviewrow
Suwandi - Non Graduate Programmer