我已datagridview
链接dataSource
,此数据源从表中获取数据有 900 万条记录,我正在按名称在此表中搜索,在需要更改绑定数据后,需要PageIndex
通过此代码研究 900 万条记录:
有什么方法可以更改PageIndex
而无需再次绑定?
Protected Sub GVCenteralSearch_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles GVCenteralSearch.PageIndexChanging
GVCenteralSearch.PageIndex = e.NewPageIndex
GVCenteralSearch.DataSource = CentralSearch_DS
GVCenteralSearch.DataBind()
End Sub
注意:这是基于 WebApp (ASP.net)