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 

Finding rows in ADODatasets

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Bill C
Guest





PostPosted: Tue Dec 02, 2003 10:32 am    Post subject: Finding rows in ADODatasets Reply with quote




G'day all,
D7 Pro, MSServer7, XP Pro
I am displaying an ADODataset returned using CommandText and a 'SELECT...' statement.
Once the data is in a Data aware DBgrid, can I search for a record within this data set? If so, guidance on how to do this would be appreciated.
Thanks in advance.
Cheers
Bill
Back to top
Kevin Frevert
Guest





PostPosted: Tue Dec 02, 2003 1:32 pm    Post subject: Re: Finding rows in ADODatasets Reply with quote



Bill,

Once the data is in the component (and as specific as you can be using the
Where clause), you can use the standard search function Locate (see help for
details). A hint, be sure to wrap the Locate with
DisableControls/EnableControls. Result set of 10 records, you probably
won't see any difference, but you should if the result contains a couple of
hundred records (your mileage may vary).

Good luck,
krf

"Bill C" <wcarey (AT) senet (DOT) co~~m.au> wrote

Quote:

G'day all,
D7 Pro, MSServer7, XP Pro
I am displaying an ADODataset returned using CommandText and a 'SELECT...'
statement.
Once the data is in a Data aware DBgrid, can I search for a record within
this data set? If so, guidance on how to do this would be appreciated.
Thanks in advance.
Cheers
Bill



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) 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.