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
560
Showing Image in ComboBox
posted

Hello out there,

I have an ComboBox which is connected to a DataSet with small Images (and an hidden value column).

If I press the Button on the ComboBox, the images are show and I can select one.

 

But, when I do this, the Image is not shown in the Combobox, but it's type: System.Drawing....

 

How can I modifiy the ComboBox to show my Images?

 

Thanks,

Frank 

Parents
  • 469350
    Offline posted

     Hi Frank,

        I think you will need to use UltraComboEditor for this instead of UltraCombo.

        Assuming you bind the UltraComboEditor to some data source, you would loop through the items in the list and assign an Appearance.Image to each one. Then you tell the list to display the images by setting:

     this.ultraComboEditor1.Items[0].ValueList.DisplayStyle = ValueListDisplayStyle.Picture;

Reply Children