StrataFrame Forum

ComboBox - Setting Default Values

http://forum.strataframe.net/Topic10838.aspx

By Tim Dol - 8/13/2007

I have an issue with one of my combobox's (I tried Both SF and Infragistic). The combo box is bound to a field in my Notes table. I created the item list. (General,Project,Estimate)... It's a legacy database so I have to deal with the hard-coded text values.   I set PopulationType = Manual and PopulateOnFormLoad = Manual.

When I create a new record I need to set the default field value based on a paramater so I thought I would try the adding the code to my BO's SetDefaultValue event handler within my program.  (me.BO.notetype = "General").   When I execute the code the combobox remains blank, however the field in the business object is correct.  I tried moving the code to the combobox's parentFormLoading event as suggested in another post, however still no luck.

Any Idea's?

By Trent L. Taylor - 8/14/2007

Have you changed the binding property?  By default the combos bind to the SelectedValue property rather than the Text.  Change the BindingProperty to Text and see if you get the results you were looking for.
By Tim Dol - 8/14/2007

That did it! Smile

Thanks

By Trent L. Taylor - 8/14/2007

Good deal Smile