Subject Re: [IBO] TIB_Grid problem
Author TeamIBO
> Thanks Geoff, Now I tried to connect ib_grid to ib_query, and it
> works fine, however, it is active under design time, keep connection
> property of IB_Connection is true, but when I run the program I see
> that the query is not active, because it is not show any record.
> shoult I use IB_Query1.open each time (or on show event of form) or
> is there any way to see the data automatically without any comment.

Not by default. Having connections connect automatically, datasets
prepare or open automatically etc can be troublesome (exceptions due
to dependancies between datamodules and forms). It is generally
better to do the actual connect and prepare/open in code. This allows
you to optimise your application and not be impacted by things you
have opened during design for other reasons.

HOWEVER, if you like the idea of having every that you had open at
designtime automatically open when you run the program you can. Drop
TIB_SessionProps onto the mainform of the application and set the
StoreActive to true.

--
Geoff Worboys - TeamIBO
Telesis Computing