i am updating my table by placing datailsview in the webpage and giving it a datasource, i have introduced a dropdownlist in the middle of bounded control and want it to be filled according to my given instruction, but the dropdownlist is not accessible via ID in codebehind.
like e.g
thx in advance.
mansoor
SIVAPosted Dec 28, 2011, 6:49 AM
You can retrieve the value of dropdownlist from GridView
just try with the below,
string DName=(gvdept.rows[e.RowIndex].FindControl("drpdownlist")).text;
If its required for your requirement just perform the typecasting