By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,816 Members | 2,151 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,816 IT Pros & Developers. It's quick & easy.

problems with allowPaging in WebControls.DataGrid

P: n/a

I'm using a WebControls.DataGrid and I wanna allowpaging to show several
pagins with a NextPrev mode selection

The Query returns 8 Rows but only shows 1 page with 5 rows, and the page
count is 1.

My code is

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
DataGrid1.AllowPaging = True
DataGrid1.PagerStyle.Mode = PagerMode.NextPrev
DataGrid1.PageSize = 5
End Sub
Sub DataGrid1_Page(ByVal sender As Object, ByVal e As
DataGridPageChangedEventArgs) Handles DataGrid1.PageIndexChanged
DataGrid1.CurrentPageIndex = e.NewPageIndex
End Sub 'MyDataGrid_Page
Anyone knows how to resolve this?

Nuno Monteiro
RCSoft - Desenvolvimento de Software, Lda.
Telef: 239708708
Fax: 239708701
Nov 22 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.