Topic: Incremental Search

See enclosed project.

Button1 on Tablegrid1 has an incremental search for data in the table Medicijnen, witch data is presented in Tablegrid2 on Tabsheet1 on Pagecontrol1. That works perfect.

Button5 on Tablegrid1 has an incremental search for data in the table Zorgbehandeling, witch data is presented in Tablegrid3 on Tabsheet2 on Pagecontrol1. That works also perfect when I change Button1 to Button5.

What I want: when I choose a person on Tablegrid1 I want to see the data presented in Tablegrid2 (Medicijnen) AND the data presented in Tablegrid3 (Zorgbehandeling)

Is this possible?

Post's attachments

Attachment icon medis.zip 610.33 kb, 291 downloads since 2020-02-27 

Re: Incremental Search

In this case, instead use Increm.Search, you should use this simple script

procedure dash2_TableGrid1_OnCellClick (Sender: TObject; ACol, ARow: Integer);
begin
    dash2.Button1.Click;
    dash2.Button5.Click;
end;
Dmitry.

Re: Incremental Search

OMG, that simpel? Dmitry, thanks very much, it works perfect.