﻿<?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 - Manually add items</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 08:24:38 GMT</lastBuildDate><ttl>20</ttl><item><title>ComboBox - Manually add items</title><link>http://forum.strataframe.net/FindPost19611.aspx</link><description>I have a combobox that I need to manually populate in the form's constructor by using Items.Add from a collections passed to the form.&amp;nbsp; I have set:&lt;/P&gt;&lt;P&gt;DropDownStyle='DropDownList'&lt;/P&gt;&lt;P&gt;Businessobject='my forms business object'&lt;/P&gt;&lt;P&gt;BindingField='my bo field name'&lt;/P&gt;&lt;P&gt;BindingProperty='SelectedText'&lt;/P&gt;&lt;P&gt;PopulateOnFormLoad='Manual'&lt;/P&gt;&lt;P&gt;PopulationType='Manual'&lt;/P&gt;&lt;P&gt;Problem: When I edit an exiting record, the combobox value is blank.&amp;nbsp; When I select an item from the list and then&amp;nbsp;save, the binding field remains unchanged.</description><pubDate>Tue, 23 Sep 2008 10:50:45 GMT</pubDate><dc:creator>Chris Diesel</dc:creator></item><item><title>RE: ComboBox - Manually add items</title><link>http://forum.strataframe.net/FindPost19639.aspx</link><description>No problem...glad it got you going :)</description><pubDate>Tue, 23 Sep 2008 10:50:45 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: ComboBox - Manually add items</title><link>http://forum.strataframe.net/FindPost19630.aspx</link><description>Alright, sorry&amp;nbsp;:blush:. &amp;nbsp;'Text' not 'SelectedText'.&lt;P&gt;Now the combobox displays the correct value when initially displayed but does not save a different value selected.</description><pubDate>Tue, 23 Sep 2008 09:47:47 GMT</pubDate><dc:creator>Chris Diesel</dc:creator></item><item><title>RE: ComboBox - Manually add items</title><link>http://forum.strataframe.net/FindPost19621.aspx</link><description>I think that's what I have ;).</description><pubDate>Tue, 23 Sep 2008 09:26:26 GMT</pubDate><dc:creator>Chris Diesel</dc:creator></item><item><title>RE: ComboBox - Manually add items</title><link>http://forum.strataframe.net/FindPost19615.aspx</link><description>Well, you are going to have to be consistent in regards to the binding.&amp;nbsp; If you just want to bind to the text, then you will have to change the BindingProperty to Text instead of SelectedValue.&amp;nbsp; otherwise, you will need to popupate a data source (i.e. a data table) and set the DisplayMember, ValueMember, and DataSource properties.&amp;nbsp; But in this case, it sounds like all you need to do is just set the BindingProperty to Text instead of SelectedValue.</description><pubDate>Tue, 23 Sep 2008 09:11:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>