﻿<?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?)  » How do I handle a combobox and items not in the list?</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 07:01:29 GMT</lastBuildDate><ttl>20</ttl><item><title>How do I handle a combobox and items not in the list?</title><link>http://forum.strataframe.net/FindPost6173.aspx</link><description>How do I handle allowing the user to just add an item to a combo, then adding it to the list/saving it using a BO, and updating the list so the new items is included?&lt;br&gt;
&lt;br&gt;</description><pubDate>Mon, 29 Jan 2007 10:01:08 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How do I handle a combobox and items not in the list?</title><link>http://forum.strataframe.net/FindPost6389.aspx</link><description>If you can't figure out a solution then create a simple sample using the StrataFrameSample database and post it on the forum.&amp;nbsp; We can take a look at it and see what is going on.</description><pubDate>Mon, 29 Jan 2007 10:01:08 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How do I handle a combobox and items not in the list?</title><link>http://forum.strataframe.net/FindPost6373.aspx</link><description>OK, I'll see what I can find in the samples.  This is just frustrating, because it isn't likely code (as there is no significant code in the my test), I can't see any differences between the setup of my combo that doesn't work and other combos that DO work.  :crazy:&lt;br&gt;
&lt;br&gt;
Is there any situation where the population settings would affect this?</description><pubDate>Mon, 29 Jan 2007 09:29:48 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How do I handle a combobox and items not in the list?</title><link>http://forum.strataframe.net/FindPost6322.aspx</link><description>Have you tried running some of the StrataFrame samples.&amp;nbsp; For example, the sample CRM Application or StrataFrame UI Controls.&amp;nbsp; If you can't find anything in here I will create something else, but I would think that we already have a sample somewhere :)</description><pubDate>Fri, 26 Jan 2007 17:55:46 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How do I handle a combobox and items not in the list?</title><link>http://forum.strataframe.net/FindPost6321.aspx</link><description>I can't get this to work. I have it down to three lines of code for the form:&lt;br&gt;
&lt;br&gt;
- In form load I load the bo&lt;br&gt;
- One button click to edit bo&lt;br&gt;
- one button click to undo bo&lt;br&gt;
&lt;br&gt;
I've also tried loading combo myself, but that was a disaster. So, could you provide an example of how you would fill a combo from a BO and allow the user to edit the value. I must be doing something wrong in the population settings.</description><pubDate>Fri, 26 Jan 2007 17:11:22 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How do I handle a combobox and items not in the list?</title><link>http://forum.strataframe.net/FindPost6269.aspx</link><description>Just work backwards.&amp;nbsp; Create a new test form and just populate a combo and bind it to a BO and work from there adding changes that would match your original form.</description><pubDate>Thu, 25 Jan 2007 18:10:22 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How do I handle a combobox and items not in the list?</title><link>http://forum.strataframe.net/FindPost6247.aspx</link><description>[quote]To prove that this is not the problem set the IgnoreUIReadonlyState on teh combos to True and see if it works.[/quote]&lt;br&gt;
&lt;br&gt;
Yep. This enables editing of the text in the combo.&lt;br&gt;
&lt;br&gt;
I have a MaintenanceToolstrip and my BO on the form. I have four procedures in the entire form:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Form load - loads a treeview and fills the BO (BO set to manual filling)&lt;br&gt;
&lt;br&gt;
BO AfterSave - reloads the tree, requeries two combos (the ones in question)&lt;br&gt;
&lt;br&gt;
Treeview AfterSelect - navigates the BO and show appropriate panel (in a PanelManager)&lt;br&gt;
&lt;br&gt;
button Click - closes the form&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
The tree view has items from the BO in a hierarchy. If a node representing a BO record is clicked, an editor panel is shown and the BO navigates to that panel.&lt;br&gt;
&lt;br&gt;
The MaintenanceToolstrip is not showing navigation buttons.&lt;br&gt;
&lt;br&gt;
Where do I start looking?</description><pubDate>Thu, 25 Jan 2007 12:32:31 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How do I handle a combobox and items not in the list?</title><link>http://forum.strataframe.net/FindPost6235.aspx</link><description>We do this all of the time so there is something else going on in your form.&amp;nbsp; The only thing we do (to make a disabled drop down list and drop down combo) to make the disabled states look the same is change this when the controls UI state is automatically managed.&amp;nbsp; This is due to the fact that the standard .NET controls render differently when disabled if a combo is a drop down or drop down list.&lt;/P&gt;&lt;P&gt;To prove that this is not the problem set the IgnoreUIReadonlyState on teh combos to True and see if it works.&amp;nbsp; The only reason this would not get set back properly is if some event is being managed and changing what the control is expecting when the state is managed.</description><pubDate>Thu, 25 Jan 2007 11:04:27 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How do I handle a combobox and items not in the list?</title><link>http://forum.strataframe.net/FindPost6225.aspx</link><description>Oh, when using this, do I bind the Text property instead of the SelectedValue property?</description><pubDate>Thu, 25 Jan 2007 10:26:56 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How do I handle a combobox and items not in the list?</title><link>http://forum.strataframe.net/FindPost6224.aspx</link><description>Hmmm...I notice that I can't make a SF combobox a DropDown style one.  Well, more accurately, I can set the property in the designer, but at runtime it always is a DropDownList style.  Is this correct?  If so, is there a relatively simple way to load a normal .net combo form a BO?  &lt;br&gt;
&lt;br&gt;
Thanks!</description><pubDate>Thu, 25 Jan 2007 10:26:08 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How do I handle a combobox and items not in the list?</title><link>http://forum.strataframe.net/FindPost6205.aspx</link><description>You can allow the combo box to be a DropDown rather than a DropDownList.&amp;nbsp; When the user saves the current record, also create a new lookup table entry for the value they entered in the combo and save it to the database.&amp;nbsp; The next time you populate the combo, the new record will be included (because it's in the database).</description><pubDate>Thu, 25 Jan 2007 08:59:08 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>