Asp.net - Gridview Paging
Page 1 of 1
Asp.net - Gridview Paging
Take a gridview named "Grid"
Set "Allow Paging" property to "True"
Goto source (html coding part) and in the gridview tag write the "OnPageIndexChanging="Grid_PageIndexChanging"
Goto coding section and write the following sub
Protected Sub GridViewPageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs)
sender.PageIndex = e.NewPageIndex
Grid.databind()
End Sub
Set "Allow Paging" property to "True"
Goto source (html coding part) and in the gridview tag write the "OnPageIndexChanging="Grid_PageIndexChanging"
Goto coding section and write the following sub
Protected Sub GridViewPageIndexChanging(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewPageEventArgs)
sender.PageIndex = e.NewPageIndex
Grid.databind()
End Sub
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum