﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » ComboBox - Setting Default Values</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 03:39:07 GMT</lastBuildDate><ttl>20</ttl><item><title>ComboBox - Setting Default Values</title><link>http://forum.strataframe.net/FindPost10838.aspx</link><description>I have an issue with one of my combobox's (I tried Both SF and Infragistic).&amp;nbsp;The combo box is bound to a field in my&amp;nbsp;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.&amp;nbsp;&amp;nbsp;&amp;nbsp;I set PopulationType = Manual and PopulateOnFormLoad = Manual.&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; (me.BO.notetype = "General").&amp;nbsp;&amp;nbsp; When I execute the code the combobox remains blank, however the field in the business object is correct.&amp;nbsp; I tried moving the code to the combobox's parentFormLoading event as suggested in another post, however still no luck.&lt;/P&gt;&lt;P&gt;Any Idea's?</description><pubDate>Tue, 14 Aug 2007 08:32:22 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: ComboBox - Setting Default Values</title><link>http://forum.strataframe.net/FindPost10849.aspx</link><description>Good deal :)</description><pubDate>Tue, 14 Aug 2007 08:32:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: ComboBox - Setting Default Values</title><link>http://forum.strataframe.net/FindPost10847.aspx</link><description>That did it! :)&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Tue, 14 Aug 2007 07:55:02 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: ComboBox - Setting Default Values</title><link>http://forum.strataframe.net/FindPost10844.aspx</link><description>Have you changed the binding property?&amp;nbsp; By default the combos bind to the SelectedValue property rather than the Text.&amp;nbsp; Change the BindingProperty to Text and see if you get the results you were looking for.</description><pubDate>Tue, 14 Aug 2007 06:52:37 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>