Board index » delphi » Opened database but data doesn't show on component display

Opened database but data doesn't show on component display

I've got a query that populates several TEdit controls. When I open the
dataset, no data shows in the controls. If I click on a control, the data
(for that control) is suddenly there.

Has anyone seen this? I've done this a thousand times with now problem and
now this. Any ideas?

TIA

Phil Cain
--

 

Re:Opened database but data doesn't show on component display


Phillip Cain

Do you need to invalidate the edit controls?  I think the db aware edits
do this internally perhaps.

Re:Opened database but data doesn't show on component display


Quote
Philip Cain <philc...@orelle.com> wrote in message <news:s726dugsob0l7rnnkrcvl20mrs0uv92720@4ax.com>...
> I've got a query that populates several TEdit controls. When I open the
> dataset, no data shows in the controls. If I click on a control, the data
> (for that control) is suddenly there.

> Has anyone seen this? I've done this a thousand times with now problem and
> now this. Any ideas?

> TIA

> Phil Cain
> --

Can't tell from what youve posted.
When are you populating the TEdits, presumably straight after the
query get's opened.
Whats in You OnEnter, OnClick of the TEdit events that would pick the
data up for you ?.

PS if the above is happening the query must still be open, why what do
you need it for ?

Re:Opened database but data doesn't show on component display


I had a similar problem when I was showing white text on a white
background.

            Maurie

Quote
Philip Cain wrote:

> I've got a query that populates several TEdit controls. When I open the
> dataset, no data shows in the controls. If I click on a control, the data
> (for that control) is suddenly there.

> Has anyone seen this? I've done this a thousand times with now problem and
> now this. Any ideas?

> TIA

> Phil Cain
> --

Other Threads