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
45
How to properly clear an ultraComboBox
posted

 I have several ultraComboBoxes that I bind to dataviews. I tried clearing the combobox by ucbWarehouse.Datasource = Nothing. This only clears the grid dropdown but not the text. When I do ucbWarehouse.Text = "" I get an error.

I tried setting Value = 0 but the text will also show 0. 

My workaround for now is

 try

    ucbWarehouse.Text = ""

catch

    'do nothing

end try

 

How do I properly clear the combobox?  

 Any reply is much appreciated.

Parents
No Data
Reply Children
No Data