set AllowPaging="True"
and implement the following procedure
Private Sub gvReport_PageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs) Handles gvReport.PageIndexChanging
gvReport.PageIndex = e.NewPageIndex
gvReport.DataSource = ds.Tables("TableName").DefaultView
gvReport.DataBind()
End Sub
No comments:
Post a Comment