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 June 30th, 2005, 01:54 AM
Registered User
 
Join Date: Jun 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with DataGrid [simple one]

i create one data grid and set its properties as allow paging as true and set the
size of records as 5.but in my database more rec are there.
after successfully populated first 5 recs,i am click on next symbol but it wont display next five recs ...

pls show me the solution

advanced thaks
rams

 
Old June 30th, 2005, 07:30 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You need to handle the PageIndexChanged event of the grid. In the handler you need to set the current page of the grid and rebind it. Paging doesn't happen automatically in .NET 1.x

-Peter
 
Old July 7th, 2005, 12:50 AM
Registered User
 
Join Date: Jun 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi Peter!!

can i get that automatic Paging in .net 2.0.
finally i added event for the pageindexchanged event now its woking fine..
thaks alottttttttt

 
Old July 8th, 2005, 08:42 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Paging and sorting are more automatic in 2.0. Certain conditions apply. See package for details.

See this forum for ASP.NET 2.0 questions:
http://p2p.wrox.com/forum.asp?FORUM_ID=133

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
missing directive with simple datagrid pbarbalias ASP.NET 1.0 and 1.1 Basics 1 October 17th, 2006 07:48 PM
Simple Problem Little Shell XML 2 June 5th, 2006 03:30 PM
A Simple Datagrid Question? boxwalah C# 1 February 15th, 2006 07:44 PM
Probably a very simple problem kerepuki Classic ASP Basics 3 January 14th, 2006 10:25 PM
a simple problem aquarius XSLT 1 February 27th, 2004 06:17 AM





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