BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to sort TClientDataset

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Tony Guo
Guest





PostPosted: Mon Apr 26, 2004 2:43 am    Post subject: How to sort TClientDataset Reply with quote



TAdoDataset have a method named "Sort",but TClientDataset don't have(or I
miss it). My question is how to sort the client dataset without re-fetch it
from the middle tier? because sometime the result may be very large.


Back to top
Tony Guo
Guest





PostPosted: Mon Apr 26, 2004 3:31 am    Post subject: Re: How to sort TClientDataset Reply with quote



I googled "tclientdataset sort" and found the solution is index.

"Tony Guo" <tony (AT) yiii (DOT) net> дÈëÓʼþ news:408c7646 (AT) newsgroups (DOT) borland.com...
Quote:
TAdoDataset have a method named "Sort",but TClientDataset don't have(or I
miss it). My question is how to sort the client dataset without re-fetch
it
from the middle tier? because sometime the result may be very large.





Back to top
Bill Todd (TeamB)
Guest





PostPosted: Mon Apr 26, 2004 1:00 pm    Post subject: Re: How to sort TClientDataset Reply with quote



Another solution is to set the IndexFieldNames property to a semicolon
delimited list of the fields you want to sort by.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
Himanshu Upadhyay
Guest





PostPosted: Tue Apr 27, 2004 5:14 am    Post subject: Re: How to sort TClientDataset Reply with quote

In ADO with Sort you have to specify FieldName
same you can do in ClientDataset use IndexFieldName
"ClientDataset1.IndexFieldName := 'Field1; Field2....'"
or Create Index from Object Inspector and assign that index
to Clientdataset

Himanshu

"Tony Guo" <tony (AT) yiii (DOT) net> wrote

Quote:
TAdoDataset have a method named "Sort",but TClientDataset don't have(or I
miss it). My question is how to sort the client dataset without re-fetch
it
from the middle tier? because sometime the result may be very large.





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.