Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.


Multiple DBLookupComboBox tied to the same ListSource in XE4

Multiple DBLookupComboBox tied to the same ListSource in XE4

Hi List,

I have a single form with several DBLookupComboBox components tied to the same dataset same ListSource/ListField/KeyField. When I select a different value from any of the lists, all lists clear!

In Delphi 7, it was possible to select a different record of the dataset in each DBLookupComboBox, each of them storing and holding their own record, without issue. In Delphi XE4, this is no longer the case and as soon as I click on any of the DBLookupComboBox components and its dropdown list appears and before any selection is made, all of the other DBLookupComboBox components on the form are reset...

Any suggestions as to workaround this would be greatly appreciated as I am pulling out my hair :(

Thank you

RE: Multiple DBLookupComboBox tied to the same ListSource in XE4

Could it be that you are putting your DataSource (not listsource) in Insert Mode when the DBLookupComboBox drops down? That would explain why all of them are cleared, the New record has no values (null values) for the combobox to resolve against the listsource.

RE: Multiple DBLookupComboBox tied to the same ListSource in XE4

Thanks for the suggestion, I traced the problem, the dropdown was using an incorrect datasource during runtime (using different conditional during compile)


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close