Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 20th, 2005, 10:59 AM
Aforsythe Aforsythe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 104 Aforsythe User rank is Private First Class (20 - 50 Reputation Level)Aforsythe User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 22 h 8 m 10 sec
Reputation Power: 4
New to Delphi, and I have a question...

Using Delphi 5, and I don't understand how the data objects tie in to each other, a quick run and simple explaination would help a ton.

I just want to run a simple query on a 3 column table and display the results in a form.

What I've put on my form are the following objects:

DBGrid
ADO Connection
ADO Query
DataSource


I just need to know how the object properties of these objects tie together to get me my data in the DBGrid.

So far, I have the connection string in ADO Connection, and I have the query string in ADO Query, The problem I'm having is tying in the other two objects so I can actually display my results.

(I also have to modify the query based on text entered in a field, but I can figure that one out).

Reply With Quote
  #2  
Old August 4th, 2005, 03:11 AM
MrDevil MrDevil is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 2 MrDevil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 48 sec
Reputation Power: 0
Quote:
Originally Posted by Aforsythe
DBGrid
ADO Connection
ADO Query
DataSource


in the properties, assign the following
DataSource's Dataset = ADO Query

DBGrid's Datasource = Datasource

Hope you've got ADO Query's connection = ADO Connection
easy peasy.
:-)

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > New to Delphi, and I have a question...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT