Persisting DropDownList Value in PageIndexChanged of GridView
问题 Protected Sub grdView_PageIndexChanging(sender As Object, e As GridViewPageEventArgs) Handles grdView.PageIndexChanging grdView.SelectedIndex = -1 grdView.PageIndex = e.NewPageIndex ' To persist DDL values at paging using datatable Dim Data As New DataTable Data.Columns.Add("RowIndex", Type.GetType("System.Int32")) Data.Columns.Add("SelectedValue", Type.GetType("System.String")) For Each Row As GridViewRow In grdView.Rows Dim ddl As DropDownList = DirectCast(Row.FindControl("ddlSample"),