Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 15th, 2004, 03:08 AM
Authorized User
 
Join Date: Sep 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem facing in paging data grid

Hi,

I am facing a problem in datagrid paging ,, I have used default datagrid paging using the property builder window. I have set the page size 5.

I have also handlled the page-index-changed handler as

Private Sub DG_Forum_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEvent Args) Handles DG_Forum.PageIndexChanged

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

End Sub

I can c the 1st page of the datagrid 5 records/ page. It is displaying fine.

But I cannot navigate to the records other the 1st page ,,, on clicking the page number suppose "2" I did not see any records, the datagrid is empty, but the database is full of records

Any help
Regards

 
Old December 29th, 2004, 03:39 AM
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My name is alexandre from Mozambique in Africa. I am .net developer for only 5 months.
I have had the same problem in the system which I am developing using sql sever 2000 (stored procedures) with asp.net.
What I have implemented is:
After the code which you have , I called the code which fills records in the datagrid.
Sorry for mistakes. English is not my mother tongue , it is a foreign one. We speak portuguese as a national language which I have learnt at school

Mussinganheia(King)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Paging Data grid view Prakash001 Visual Basic 2005 Basics 0 February 6th, 2008 04:07 AM
Data Grid View Paging in VB.Net Prakash001 Visual Studio 2005 0 January 30th, 2008 07:44 AM
Data Grid Problem rajvijaygarg C# 0 June 19th, 2006 09:34 AM
client side sorting and paging in data grid prankur ASP.NET 1.0 and 1.1 Basics 1 February 3rd, 2006 12:05 PM
client side sorting and paging in data grid prankur ASP.NET 1.0 and 1.1 Professional 1 February 3rd, 2006 12:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.