Subject Re: [IBO] Howto manually update control when detail dataset changes
Author lester@lsces.co.uk
OK Back to the original question.

> I managed to get the master-detail relationship set up and can check
> the detail set by simply binding a grid to it. Now which event would
> I have to react on to update my own display of the detail dataset
> whenever it changes (i.e. whenever it requeries due to the master)?
> Of course, I could react on the scrolling of the master dataset, but
> this does not seem right to me. I tried afterOpen on the detail
> query, but it doesn't work.

If the master query changes then there will be an
OnDataChanged event in the attached TIB_DataSource. You need
that to attach the grid, so there will be the same on the
detail. This is where the activity from changes to the
DataSource are monitored. If the change in selection on the
master results in the detail being updated, then the detail
OnDataChanged event will also fire.

Is this the area you should be looking?

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services