﻿<?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 in unbound mode</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 29 May 2026 16:58:53 GMT</lastBuildDate><ttl>20</ttl><item><title>Combobox in unbound mode</title><link>http://forum.strataframe.net/FindPost31847.aspx</link><description>Hi there,&lt;br/&gt;&lt;br/&gt;I use a combobox in unbound mode and populate the dropdown-part by using a business-object. When I now call the form, instead of a blank value in the entry-part of the combobox, I always get the first entry of the "dropdown-part-bo" as a already given value. What can I do to prevent this?&lt;br/&gt;&lt;br/&gt;Best regards &lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Thu, 21 Feb 2013 11:08:29 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Combobox in unbound mode</title><link>http://forum.strataframe.net/FindPost31855.aspx</link><description>Hi Ben,&lt;br/&gt;&lt;br/&gt;again thanks a lot for your advice.&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Thu, 21 Feb 2013 11:08:29 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Combobox in unbound mode</title><link>http://forum.strataframe.net/FindPost31852.aspx</link><description>Yes, when you set the DataSource/DisplayMember/ValueMember of a ComboBox or ListBox (which is what SF does when you populate through the business object), the control uses those values to populate its Items collection. &amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;What I meant by default behavior is that when you have Items in the ComboBox and it's set to the mode of DropDownList, it has to have a selected value if it's not bound. &amp;nbsp;It won't let you "select none." &amp;nbsp;It always wants to select an item when the form opens up. &amp;nbsp;You might be able to jack with it if you set the SelectedValue to null/Nothing, but it's easier to just put a TopMostItem in the list so that the users can have a way to "deselect" the items in the list or "select none."&lt;br/&gt;&lt;br/&gt;&lt;div&gt;We generally have a TopMostItem of "&amp;lt;none&amp;gt;" with a value of 0 or null, or "&amp;lt;please select provider&amp;gt;" with a value of 0.</description><pubDate>Thu, 21 Feb 2013 09:52:15 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Combobox in unbound mode</title><link>http://forum.strataframe.net/FindPost31849.aspx</link><description>Hi Ben,&lt;br/&gt;&lt;br/&gt;&amp;lt;&amp;lt;&lt;span id=ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl02_lblFullMessage&gt;That is the default behavior of the ComboBox; when it has items, &amp;gt;&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;SPAN&gt;just to be sure to understand it. My combobox has no bindingfield and no businessobject set but the populationtype-property is set to businessobject and the populationdatasourcesettings are set to BO, its fill-method and its fiields. &lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;SPAN&gt;So "items" does also means this?&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;SPAN&gt;Thanks and best regards&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;SPAN&gt;Thomas&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;SPAN&gt;&lt;/span&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;SPAN&gt;&lt;/span&gt;&amp;nbsp;</description><pubDate>Thu, 21 Feb 2013 08:18:49 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Combobox in unbound mode</title><link>http://forum.strataframe.net/FindPost31848.aspx</link><description>That is the default behavior of the ComboBox; when it has items, it does not allow a selection that is not included in the data source. &amp;nbsp;We added the TopMostItem property specifically to allow for this. &amp;nbsp;Set the TopMostItem.Description and .Value to the desired values. &amp;nbsp;It forces the item to show up as the first item in the drop down. &amp;nbsp;</description><pubDate>Thu, 21 Feb 2013 07:39:37 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>