var row = $(this).closest('tr'); var ID = row.find("td:first").text(); $("#<%=TextBox12.ClientID%>").val(ID);
I have used this for displaying the gridview value in the textbox but this is not working for the dropdownlist.
Yes Aashish682 the code you shared works but be sure you assign different id for the dropdownlist which is present in edit dialog popup so that it wont assign same selected values to all the dropdownlist present in gridview.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.