Home > Back-end >  DBLookupComboBox usage
DBLookupComboBox usage

Time:09-21

Ask next DBLookupComboBox usage, DBLookupComboBox connection DataSource, ListDatasource, set each field, run time how to don't show the DataSource field content (null), but the points down, can display the ListDatasource field information, where to set the wrong?

CodePudding user response:

The listsource first set, then listfield, keyfield set up is ok,

CodePudding user response:

(1) the DataSource property
This property is used to connect to edit the data table of data source
(2) the DataField attribute
This property is used to specify the data to edit field name
(3) ListSource properties,
This property is used to provide connection data encoded from the table data
(4) KeyField attribute
This property is used to specify the data encoding from a table of keywords, generally for the data coding field
(5) ListField attribute
This property is used to select data in the table should be displayed in the list box of field name
Through the above five attributes set, can use DBLookupComboBox components drop-down list box people needed to record data
  • Related