Debmedia Creation Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Asp.net - Gridview Paging

Go down

Asp.net - Gridview Paging Empty Asp.net - Gridview Paging

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

Posts : 256
Join date : 2008-06-06

https://debmedia.forumotion.com

Back to top Go down

Back to top


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