Recent

Author Topic: How to get data to flow into data aware controls  (Read 701 times)

dgrhoads

  • New Member
  • *
  • Posts: 34
How to get data to flow into data aware controls
« on: April 29, 2019, 10:19:22 pm »
In my test application, I have a DBGrid component which can see data from my table both before and after I compile my application.  Another DBGrid component sees the data after it has been selected by an SQL statement.  The selected data is a column of Strings.

However, I have two DBListBoxes, one connected like each of the two DBGrids.  However in neither case does any data flow into the DBListBox, either before or after.

Code: Pascal  [Select][+][-]
  1. procedure TfrmDB2SS.mnuElectionsClick(Sender: TObject);
  2. begin
  3.   with dmoVSRead.edElectionsQry do begin
  4.     SQL.Clear;
  5.     SQL.Add ('select electionName from Elections '
  6.              +' where electionID = 2');
  7.     ExecSQL;
  8.     ShowMessage('RecordCount: '+IntToStr(RecordCount));
  9.   end;
  10.   dbGrid1.AutoAdjustColumns;
  11.   ShowMessage ('DBLookupListBoxes.Counts (1/2): '
  12.                +IntToStr(DBLookupListBox1.Count)
  13.                +'/'+IntToStr(DBLookupListBox2.Count));
  14. end;  
[/font]

What do I need to do to get the data to flow into these data controls which are not DBGrids?

 

TinyPortal © 2005-2018