I have a problem using MyDAC (10.4.4) with UNIGUI.
When using Locate before displaying the form, the record selected on the uniDBgrid is always the first, the cursor does not move.
If the same operation is done at the click of a button ... the cursor moves ... and it works.
procedure TMainForm.MySearch(V:string);
begin
if MyQuery1.Locate('ID',V,[]) then
UniLabel1.Caption:='FOUND :'+V;
end;
procedure TMainForm.UniFormAfterShow(Sender: TObject);
begin
MySearch('12'); //Finds the record, but does not display it in the grid
end;
procedure TMainForm.UniButton2Click(Sender: TObject);
begin
MySearch('30'); //Find the recod and it is displayed in the grid.
end;
With this problem I cannot select the record before the unidbgrid is displayed.
Do you have a solution?