vb.net 2.0 Comobox datasource to an business object

  • Thread starter Thread starter JeffV
  • Start date Start date
J

JeffV

All I have a business object that I have bound to my combobox:


Dim myLeagueList As coachingAppObjects.ro_leagueRootList
myLeagueList =
coachingAppObjects.ro_leagueRootList.GetLeagueRootList
Me.cboLeagues.DataSource = myLeagueList

This works great, however, I would like to add a default item as the
first one on the list (for example: Please Select).

Please Select
Choice 1
Choice 2
Choice 3


However, whenever I do the following

cboLeagues.items.add("Please Select")

I get the following message:

Items collection cannot be modified when the DataSource property
is set.

Any suggestions?
 
Back
Top