在下面的代码中,当我单击Edit按钮时,网格视图下拉列表中的selectvalue将被保留,同时保留其余的下拉列表值,以便用户可以选择不同的值。
Protected Sub RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs)
If e.Row.RowType = DataControlRowType.DataRow AndAlso gvCustomers.EditIndex = e.Row.RowIndex Then
Dim ddlRoles As DropDownList = Di