Trent L. Taylor (11/24/2008)
Well, it could be a couple of things. You may want to change the BindingProperty to Text instead of SelectedValue (depending on how you are binding and have the combo setup). Another option would be that the ValueMember property is not set to the appropriate field (which from what you are saying you have already checked).
Also, my response may change a bit if you are manually setting the DataSource, DisplayMember, and ValueMember or the SF population settings.
One other thing to check, if you are using the SF population, then be sure that the DisplayMember in the PopulationDataSourceSettings is set to a value and not empty...that can produce an empty combo as well (i.e. {0}, {1}, etc.)
The thing that is really goofy is that I have combos set up exactly the same way in other forms and they work just fine. I even added this line of code in the boParticipant_Navidated event handler:
cbostate_nme.SelectedValue = boParticipants.state_nme;
and even when boParticipants.state_nme contained the value "OH", after the line of code executed, cbostate_nme.SelectedValue was still null and nulls are not allowed in this field! So what is up with this?
The combo is set up to use populate using a BO and the display fields and so on all look just like they do in the forms where this is working.