 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bill C Guest
|
Posted: Tue Dec 02, 2003 10:32 am Post subject: Finding rows in ADODatasets |
|
|
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
|
Posted: Tue Dec 02, 2003 1:32 pm Post subject: Re: Finding rows in ADODatasets |
|
|
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 |
|
 |
|
|
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
|
|