How to have no value selected when loading ComboBox?

I was loading several combo-boxes in a search form. When loading all combo-boxes were getting populated by the first value of list. I wanted all these controls with nothing selected when the form is loaded. To do that I had to use:

MyCombo.SelectedItem = null;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s