Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 7th, 2004, 10:21 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default Is Paging only avaliable in DataGrid?

Is Paging only avaliable in DataGrid?

Is paging possible in Repeater or DataList?

DataGrid seems to be the more powerful of the three. Because it has extra bells and whistles, does DataGrid need more memory than Repeater or DataList?????

I hope this is not a stupid question.

 
Old August 8th, 2004, 04:10 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's not a stupid question; just the DataGrid supports paging natively.

However, you can enable paging on the other two data bound controls using a PagedDatatSource object. The following article shows you an simple, yet very effective example:

http://www.devhood.com/tutorials/tut...tutorial_id=97

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old August 9th, 2004, 07:08 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am also curious to know if using a datagrid incurs a significant amount of overhead compared to the DataList. I would think that the datagrid has more overhead, but is it really a performance factor?

- - - - - - - - - - - - - - - - - - - - - - -
In God we trust, everything else we test.
 
Old August 10th, 2004, 03:49 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yes, AFAIK, the DataGrid consumes more resources. It's a bigger class with more functionality, so I can imagine it takes more time to load and instantiate an objet of type DataGrid.

However, I wonder how much you really notice this on modern system. Personally, I wouldn't very easily choose another data control for performance reasons, but for functionality reasons. The DataGrid can do some stuff the other controls can't, but the opposite is also true. There are times where you must use the Repeater to get absolute control over the output, and you're forced to write the "missing functionality", like paging, yourself.

Cheers,

Imar
 
Old August 12th, 2004, 07:45 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,
Thank you for your response however I don't know C# at all. Is there this example in VB.NET?
This information if very valuable to me.
Thanks.

 
Old August 14th, 2004, 08:55 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Bekim,

Sorry for the late response. I have been pretty busy lately.

Take a look at this C# to VB.NET converter: http://www.kamalpatel.net/ConvertCSharp2VB.aspx

I did a quick check with the code from the article, and I think it will convert it correctly.....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old August 16th, 2004, 08:25 PM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you all






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 mrferg Classic ASP Basics 1 December 5th, 2004 09:50 PM
Is Paging only avaliable in DataGrid? bekim Classic ASP Basics 1 August 7th, 2004 09:44 PM
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.