Hello
I have a DbAdvGrid linked to DataSet. I want not trigger DataSet.AfterScroll event when I open DataSet.
Thare ara any way to know when DbAdvGrid has loaded all record in order to actÃvate then DataSet.AfterScrollEvent?
thanks
Did you try to disable the AfterScroll event before setting dataset.Active = true and enable it again after this?
Yes, I´m doing that
I cannot reproduce this.
This sequence:
begin
adotable1.AfterScroll := nil;
adotable1.Active := true;
adotable1.AfterScroll := ADOTable1AfterScroll;
end;
doesn't produce an AfterScroll event during activation of the dataset.
I also tested this with a standard VCL TDBGrid and also there, AfterScroll is triggered during dataset activation.
I also tested this with a standard VCL TDBGrid and also there, AfterScroll is triggered during dataset activation.