Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 08-12-2004, 10:10 AM
MeTaL MeTaL is offline
Member
 
Join Date: Mar 2003
Posts: 41
Default Showing DBGrid

i'm trying to make that a DBgrid just Show the results of a query .. the problem is that it shows all the records and fields... and i just want to show the results of the searching....

For example...
Locate |
Show the Results of the locate in the DB grid (just appears the Results not all )

thx in advance

__________________________________________________
Foxternet Software ||
Reply With Quote
  #2  
Old 08-12-2004, 10:30 AM
Jasser Jasser is offline
Moderator
 
Join Date: Jan 2005
Location: Saudi Arabia
Posts: 5,059
Default RE: Showing DBGrid

Use filter property. Instead of LOCATE use filter property of the query.
Reply With Quote
  #3  
Old 08-12-2004, 11:16 PM
hq hq is offline
Senior Member
 
Join Date: Nov 2002
Posts: 115
Default RE: Showing DBGrid

make your datasource = to your sqlQuery
then change you sql statement to limit the display eg

select * from info where name Like '%M'

somthing like that and you'll have your problim sorted
if this is a bit unclear mail me at hq@webmail.co.za and I'll Give you a demo

Help is good
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:05 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.