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
705
How to check if a display member or value is contained in combobox list?
posted

So I have an ultracombobox and I set the displaymember and value to two different columns of a dataset table that I bind to the data source.  In a normal winform combo box there is a combobox.items.contains function.  In dont see that in the ultracombobox.

 I want to be able to check both display and value members 

 Thanks in advance, Tony

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Tony,

        For the DisplayText, you can use the IsItemInList method.

        For the Value, you can cast the UltraCombo into an IValueList and then use the GetText method to find the item with the matching Value.  

Children
No Data