Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<asp:Literal ID="yourLiteral" runat="server" Text='<%# Eval("IDvalueYouNeed") %>'
Visible="false"></asp:Literal>
If (e.Row.RowState = DataControlRowState.Edit) OrElse (e.Row.RowState = (DataControlRowState.Edit Or DataControlRowState.Alternate)) Then
Dim id as Integer = DirectCast(e.Row.FindControl("yourLiteral").Text
Dim ddl As DropDownList = DirectCast(e.Row.FindControl("YourDDL"), DropDownList)
'Here, add or bind your dropdownlistvalues
ddl.Items.FindByValue(id).Selected = True