﻿<?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 with a "Not Selected" option</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 11:51:41 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: ComboBox with a "Not Selected" option</title><link>http://forum.strataframe.net/FindPost2823.aspx</link><description>:) I know it helped several people.</description><pubDate>Thu, 14 Sep 2006 10:02:12 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>ComboBox with a "Not Selected" option</title><link>http://forum.strataframe.net/FindPost2807.aspx</link><description>How would you recommend implimenting such a combobox.&amp;nbsp; I am using the SF combobox and populating that combo with a business object.&amp;nbsp; I have tried adding a row to the business object (Not Selected)&amp;nbsp;and not saving the data and that seems to work but I just can't find the right setting to get the form to NOT prompt to save if there is changes on the combobox's business object.&amp;nbsp; My form include settings are all set to DeterminedByBusinessObject and this business object is not directly on the form, it is in a custom user control that is being added to the form, no BOTranslation is being done for this BO. Its include settings are all set to false.&amp;nbsp; When I look at the forms businessobject coolection in the unsavedchagesexist event I notice that that bo is listed and isdirty is set to true.&lt;/P&gt;&lt;P&gt;Any suggestions?</description><pubDate>Thu, 14 Sep 2006 10:02:12 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: ComboBox with a "Not Selected" option</title><link>http://forum.strataframe.net/FindPost2822.aspx</link><description>Thanks for the info.&amp;nbsp; I really gotta get my boss to send me to the next class.</description><pubDate>Thu, 14 Sep 2006 09:41:31 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: ComboBox with a "Not Selected" option</title><link>http://forum.strataframe.net/FindPost2815.aspx</link><description>I would recommend that rather than adding the extra record to the business object you should use the TopMostItem() option on the ComboBox itself... you can specify both value and a display value for the top most item in the list... generally "&amp;lt;Not Selected&amp;gt;" and 0, or something like that.&lt;/P&gt;&lt;P&gt;Also, if you ever add a record to a business object manually, and you don't want that record to make the business object dirty, then you can accept the changes on the row like this:&lt;/P&gt;&lt;P&gt;MyBO.CurrentRow.AcceptChanges(); //-- Make sure you're on the right row...&lt;/P&gt;&lt;P&gt;This way, you add new rows all day log without the business object thinking it's dirty.</description><pubDate>Thu, 14 Sep 2006 08:35:16 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>