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 February 11th, 2004, 06:29 AM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Gridsort example (in C#)

I have a little problem with how the gridsortingexample was coded in the C# version of the book (I suppose that the VB example was coded with the same logic)

How the example works :
- the data is read from the DB server
- a dataview is created to establish the wanted sort and bound the to grid
- and then it comes : each time the sort order is changed, this process is repeated.

My remark on this is : wouldn't it be better to keep the dataset and dataview (somewhere in memory) and simply change the sort of the dataview, without re-reading the data from the server ? If not why work with a dataview ? You can simply let the datasort by the db-server.

 
Old February 11th, 2004, 04:39 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default


I'm not sure if the dataview or dataset is capable of handling SQL.










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