How to display default text “–Select Team –” in combo box on pageload in WPF?

The easiest way I’ve found to do this is:

<ComboBox Name="MyComboBox"
 IsEditable="True"
 IsReadOnly="True"
 Text="-- Select Team --" />

You’ll obviously need to add your other options, but this is probably the simplest way to do it.

There is however one downside to this method which is while the text inside your combo box will not be editable, it is still selectable. However, given the poor quality and complexity of every alternative I’ve found to date, this is probably the best option out there.

Leave a Comment