ComboBox and Dataset ?

  • Thread starter Thread starter Andy Gaskell
  • Start date Start date
Hi!
How I can set ComboBox like DBLookUpComboBox in Delphi ?

Plese help me
Thank's
 
What exactly does a DBLookUpComboBox in Delphi do?

I have two tables, Costomers and Oreders
CustomersId is Key
Customers 1:m Orders

ComboBox shoul display OredersDate or other field in Orders table per
CustomersId in Customers table !

Please any example ?

Thanks
 
Dear Sir,

Combobox.datasource= your dataset
combobox.displaymember= some column to display
combobox.valuemember = some column to act -> id

For example

Table
client

ClientID
ClientName

Table Ordere
OrderID
ClientID


on the form

textbox orderid
comboboxclient

comboboxclient.datasource= datasetclientorders
comboboxclient.displaymember=datasetclientorders.client.clientName
comboboxclient.valuemember=datasetclientorders.client.clientID

Hope this helps...

Kind regards,

Carlo
 
Back
Top