SQL text individually data set in Stringgrid or TDBGrid

Discussion of open issues, suggestions and bugs regarding LiteDAC (SQLite Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Jmich
Posts: 1
Joined: Tue 26 Jan 2021 13:50

SQL text individually data set in Stringgrid or TDBGrid

Post by Jmich » Tue 26 Jan 2021 14:48

For Combox1 this works well in the selection boxes.

Code: Select all

liteQuery1.SQL.Text := 'SELECT projektnummer, bauprojekt, bauort from firmenprojekte order by projektnummer';
      liteQuery1.Open;
      while not liteQuery1.Eof do
       begin
        cbx_auswahl_projekte.Items.Add(liteQuery1.FieldByName('projektnummer').AsString);
        cbx_ausw2.Items.Add(liteQuery1.FieldByName('bauprojekt').AsString);
        cbx_ausw3.Items.Add(liteQuery1.FieldByName('bauort').AsString);
        liteQuery1.Next;
       end;
But what is the solution for a stringgrid or TDBGrid?
Who can help me?

Thanks Jmich

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: SQL text individually data set in Stringgrid or TDBGrid

Post by MaximG » Mon 01 Feb 2021 21:54

The issue you describe does not relate to the work of our product. To find a required solution, please refer to the Embarcadero documentation or one of the specialized forums

Post Reply