Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Databases Also see the forum ASP Databases for more general discussions of ASP database issues not directly related to these books.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Databases 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 August 24th, 2003, 10:59 AM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataGrid Paging Example Question

I'm in the middle of this book (or, more precisely, "Beginning ASP.NET Databases Using VB.NET") and have a question about the DataGrid Paging example in Chapter 5. Since my head is bloody from hitting it against a brick wall (and the wall doesn't look too good either:D) I thought I'd post it (the question, not my head) here.

Why is it necessary, in the GridPageChanged handler (which is called when the user pages) to repeat the call to DataFiller() and thus requery the source and refill the DataSet (I don't know whether the connection and adapter objects are recreated or not)? Shouldn't just a DataBind() work? I mean, the DataSet contains all the records anyway. If you're going to keep requerying how about doing your own calculations and just pulling down the appropriate page of data?

I am assuming my naivete is showing and there is a very good reason for this. It's just that I'm curious.

Thanks for any info.

=NLK=

 
Old August 3rd, 2004, 04:04 PM
Registered User
 
Join Date: Jul 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is almost a year since you wrote.
I mirror your sentiments...but did you get an answer?
You probably know more than I at this point.

Am working through Beginning Dynamic Websites and also the ASP.NET for Databases books. What fun.
I'm convinced noone totally tests these as a new and dumb user without any setup! ha






Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom paging in Datagrid with datagrid page count madhusrp ASP.NET 1.0 and 1.1 Professional 12 June 2nd, 2008 01:15 PM
Paging in DataGrid vijay_83 ASP.NET 2.0 Basics 0 September 29th, 2006 02:06 PM
datagrid-paging kvanchi ASP.NET 1.0 and 1.1 Basics 2 December 8th, 2004 04:17 AM
Datagrid Paging collie VB.NET 2002/2003 Basics 17 January 25th, 2004 07:02 AM





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