Asp.net - Gridview Paging

View previous topic View next topic Go down

Asp.net - Gridview Paging

Post  Admin on Sat Jan 16, 2010 2:25 pm

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
avatar
Admin
Admin

Posts : 256
Join date : 2008-06-06

View user profile http://debmedia.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum