Search code examples
databasedelphicomponents

Database ComboBox component whose items are loaded from the database?


Is there a database component allowing for navigating through an attached dataset with a combobox look & feel? Upon setting the DataSource, a specifiable field would be 'loaded' into the Items property, and when the user selects an item, the dataset navigates to the selected record. Does such a component exist?


Solution

  • You can achieve this with a TDBLookupComboBox omitting the DataSource and DataField property. You have to link the ListSource to your actual data source, the KeyField to the field used for the order and the ListField to the field(s) to be displayed.