Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
700
ComboEditor AddArray
posted

Hello,

In the MS standard windows controls the AddArray method will take any array as a parameter and you can then set Display and Data bindings.  The AddArray method for the UltraComboEditor only takes an array of ListItems.

 Is there a mechanism built in to pass an array of objects (for example a person object) and set what fields to bind to (say PersonId and PersonName) for data and display values without looping through the array and manually adding the items?

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    You can bind the UltraCombo or UtraComboEditor using the DataSource/DataMember properties. You would use the ValueMember and DisplayMember to determine which fields are saved and displayed respectively.

Children
No Data