Hello,
I am using the folowing filter statement to display record in a TMSNFCGrid.
try
grlProjekten.BeginUpdate;
ClientmoduleREST.FDMProject.DisableControls;
ClientmoduleREST.FDMProject.AfterScroll:=Nil;
ClientmoduleREST.FDMProject.Filtered:=False;
ClientmoduleREST.FDMProject.FilterOptions:=[foCaseInsensitive];
ClientmoduleREST.FDMProject.Filter:='Prnaam LIKE
'+QuotedStr('%'+trim(eZoekenProjekten.Text)+'%')+' or Pradres LIKE
'+QuotedStr('%'+trim(eZoekenProjekten.Text)+'%')+' or Prwnpl LIKE
'+QuotedStr('%'+trim(eZoekenProjekten.Text)+'%')+' or UITVNAAM LIKE
'+QuotedStr('%'+trim(eZoekenProjekten.Text)+'%')+' or CONTPERS LIKE
'+QuotedStr('%'+trim(eZoekenProjekten.Text)+'%');
ClientmoduleREST.FDMProject.Filtered:=True;
finally
ClientmoduleREST.FDMProject.AfterScroll:=ClientmoduleREST.FDMProjectAfterScroll;
ClientmoduleREST.FDMProject.AfterScroll(ClientmoduleREST.FDMProject);
grlProjekten.EndUpdate;
ClientmoduleREST.FDMProject.EnableControls;
end
The grid is not giving all records that are in the TFDMemTable.
When I get rid of the DisableCOntrols and BeginUpdate is working oke.
Am i missing something ?
Gert Hoogeboom