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
95
How do I set a default value in an ultracombobox
posted

hi,

I've been trying to figure out how to set a default value in an ultracombobox, when its dropdownstyle is dropdownlist.  When I change the dropdownstyle to dropdown, I can set the default value by using ultracombobox.Text = "Text", and it works fine, but when I try the same thing when the dropdownstyle is dropdownlist, the default value does not show. 

 The reason I want to use dropdownlist, and not dropdown, is because dropdownlist does not allow the user to type anything into the combobox, while dropdown does.

 

Thanks

- Chad

Parents
No Data
Reply
  • 280
    posted

     Hello Chad,

    You need to set the  ultracombobox.Value = null;

    the UltraCombo works with ValueMember and DisplayMember, is always better to set the .Value property.

    Nassos

Children
No Data