Skip to content

Infragistics Community Forum / Desktop / Ultimate UI for Windows Forms / How to properly clear an ultraComboBox

How to properly clear an ultraComboBox

New Discussion
Kenji
Kenji asked on Aug 20, 2008 3:11 PM

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.

Sign In to post a reply

Replies

  • 0
    Mike Saltzman
    Mike Saltzman answered on Aug 20, 2008 3:11 PM

    Seems like you want to do this:

    ucbWarehouse.Value = null

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Kenji
Favorites
0
Replies
1
Created On
Aug 20, 2008
Last Post
17 years, 6 months ago

Suggested Discussions

Tags

Created by

Created on

Aug 20, 2008 3:11 PM

Last activity on

Feb 24, 2026 1:31 PM