Link to home
Start Free TrialLog in
Avatar of solhronn
solhronn

asked on

Connecting DBGrid with DataSource

Hi,
How do I connect my DBGrid with my DataSource? I'm connecting to a Oracle Database with ADOTable and DataSource in a DataModule but have the DB Grid on a seperate Form. When I set DataSource, in the DBGrid, to ADOTable1 with the Object Inspector I get "Invalid property value".
Can't I keep ADOTable1 and DataSource1 on the DataModule1 ?
Rgds,
Solveig
Avatar of kretzschmar
kretzschmar
Flag of Germany image

u must include your datamodule-unit into your uses clause of your form, where the grid resides

after this an entry should be selectable and/or typeable like

Datamodule1.Datasource1

meikl ;-)
ASKER CERTIFIED SOLUTION
Avatar of geobul
geobul

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
guessed a designtime solution was needed, not a runtime solution