I have a dropdownlist in my Gridview and I am binding a datasource to the gridview.
Though all the records are displaying properly the dropdown value is not selected.
How do I set something like
<%# Bind("Country") %>
for a dropdownlist in the Gridview in ASP.net.
Thanks
Best Answer
You can hook into the RowDataBound event for the grid view, find the control and set the value.