Paging in DataGrid

liunx

Guest
Is there a way to write paging code in DataGrid without using DataAdaptor??See: <!-- m --><a class="postlink" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskspecifyingpagingbehaviorindatagridwebcontrol.asp">http://msdn.microsoft.com/library/defau ... ontrol.asp</a><!-- m -->
Or: <!-- m --><a class="postlink" href="http://aspnet.4guysfromrolla.com/articles/091003-1.aspxtry">http://aspnet.4guysfromrolla.com/articl ... -1.aspxtry</a><!-- m --> this, one of my friends told me about it but i never used it

Private Sub DataGrid1_PageIndexChanged(ByVal source As System.Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles DataGrid1.PageIndexChanged

DataGrid1.CurrentPageIndex = e.NewPageIndex
DataGrid1.DataBind()

End SubThanks...
 
Back
Top