Page 1 of 1

SQL text individually data set in Stringgrid or TDBGrid

Posted: Tue 26 Jan 2021 14:48
by Jmich
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

Re: SQL text individually data set in Stringgrid or TDBGrid

Posted: Mon 01 Feb 2021 21:54
by MaximG
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