﻿<?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 » Issues  » DropDownStyle of bound Combobox is always DropDownList</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:38:59 GMT</lastBuildDate><ttl>20</ttl><item><title>DropDownStyle of bound Combobox is always DropDownList</title><link>http://forum.strataframe.net/FindPost22612.aspx</link><description>I can't seem to get a combo that is bound to have a drop down style other than DropDownList (i.e. only values in list can be selected...no random typing allowed).&lt;br&gt;
&lt;br&gt;
This is related to binding. If the combo is unbound, then when the style is set to DropDown, I can type arbitrary values into the combo.  &lt;br&gt;
&lt;br&gt;
However, if the combo is bound, the style becomes DropDownList (no matter what I set at design time).  &lt;br&gt;
&lt;br&gt;
I checked the source code (I'm not on the latest beta currently :( ) and in the BindingEditable property is manipulating the drop down style.  I'm thinking it isn't handling the original style correctly and just ends up setting it to drop down list.&lt;br&gt;
&lt;br&gt;
The workaround is to set the combo to ignore editing changes and manage that yourself if needed.</description><pubDate>Mon, 18 May 2009 07:07:18 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: DropDownStyle of bound Combobox is always DropDownList</title><link>http://forum.strataframe.net/FindPost23165.aspx</link><description>Well, thanks to Microsoft and their infinite inconsistency on their combo, we made a change a LONG time ago that swaps the DropDownState based on the editing state so the contol would look the same in a disabled state.&amp;nbsp; However, I do not think that we ever set it to Simple (I will verify this).&amp;nbsp; However, I was unable to reproduce the behavior you described.&amp;nbsp; If you could post a sample reproducing this it would be helpful.&amp;nbsp; Thanks!</description><pubDate>Mon, 18 May 2009 07:07:18 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: DropDownStyle of bound Combobox is always DropDownList</title><link>http://forum.strataframe.net/FindPost23141.aspx</link><description>Guys,&lt;/P&gt;&lt;P&gt;I got a weird thing happening, opposite way to the guys above. My concern is that I am on Mondays beta.&lt;/P&gt;&lt;P&gt;I have a combobox set to DropDown - Dropdownstyle. When the record is idle, the control looks exactly how I would expect. Then when I go into Edit mode, it the style changes to Simple. I have tracked this as the control is on a&amp;nbsp; tab control and I have placed a breakpoint on the selectedpagechanged event and I can see my control has it's dropdownstyle changed.&lt;/P&gt;&lt;P&gt;This is kind of opposite to what the guys are saying above.&lt;/P&gt;&lt;P&gt;I have kind of worked around it by testing the editingstate and I can see that the control is getting changed to simple, and I reset it back to Dropdown.&lt;/P&gt;&lt;P&gt;something is a bit odd here.&lt;/P&gt;&lt;P&gt;thanks in advance (Also more than happy to be told I have done something daft)&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;P&gt;Geoff.</description><pubDate>Fri, 15 May 2009 10:35:47 GMT</pubDate><dc:creator>Geoff Hirst</dc:creator></item><item><title>RE: DropDownStyle of bound Combobox is always DropDownList</title><link>http://forum.strataframe.net/FindPost22691.aspx</link><description>Glad to hear it...I thought that this had been addressed....thus the head scratching :D</description><pubDate>Mon, 13 Apr 2009 08:17:07 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: DropDownStyle of bound Combobox is always DropDownList</title><link>http://forum.strataframe.net/FindPost22690.aspx</link><description>Hi Trent&lt;br&gt;
&lt;br&gt;
Just installed the latest Beta and this is indeed working properly.  Thanks!&lt;br&gt;
&lt;br&gt;
(It may have been fixed earlier than the last build as I just realized I had not installed the January build :blush: )</description><pubDate>Sat, 11 Apr 2009 20:27:40 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: DropDownStyle of bound Combobox is always DropDownList</title><link>http://forum.strataframe.net/FindPost22674.aspx</link><description>Greg, this appears to be woking as it should.&amp;nbsp; Below is a link to a video that shows this in action.&amp;nbsp; I do recall fixed something in this regard a while back, so you may want to download the most recent beta to see if it resolves the issue in your scenario.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.strataframe.net/downloads/boundcombo.zip"&gt;http://www.strataframe.net/downloads/boundcombo.zip&lt;/A&gt;</description><pubDate>Wed, 08 Apr 2009 09:00:44 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: DropDownStyle of bound Combobox is always DropDownList</title><link>http://forum.strataframe.net/FindPost22670.aspx</link><description>Bump...this appears to be a bug and I'd like to know if that is the case and that is on the list of fix  :P</description><pubDate>Tue, 07 Apr 2009 13:21:27 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: DropDownStyle of bound Combobox is always DropDownList</title><link>http://forum.strataframe.net/FindPost22647.aspx</link><description>If you set the ignoremanagereadonlystate to true you get a cbo you can type in but unlike the textboxes, you can type in it when you are not in an editing state.  So yes, the managing is what is setting the dropdown to dropdownlist.  &lt;br&gt;
&lt;br&gt;
So far the code about is the only answer I've found to get the CBO dropdown to behave like other controls (except for it looking disabled when not in editing mode).  Not a huge deal, but would probably be good to look at for any refactoring of the managing of edit state in the future. :)&lt;br&gt;
&lt;br&gt;</description><pubDate>Sat, 04 Apr 2009 20:36:05 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: DropDownStyle of bound Combobox is always DropDownList</title><link>http://forum.strataframe.net/FindPost22639.aspx</link><description>Do you get the same behavior if you set the IgnoreManageReadonlyState to True?</description><pubDate>Sat, 04 Apr 2009 12:59:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: DropDownStyle of bound Combobox is always DropDownList</title><link>http://forum.strataframe.net/FindPost22630.aspx</link><description>This is my current work-around but I am open to suggestion.  It seems comboboxes do not have a readonly property so enabled seems the other option.  Is there a property that will not dim the cbo if it is disabled?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
[codesnippet]    Private Sub ClientMaintenanceBO1_EditingStateChanged( _&lt;br&gt;
                                                          ByVal e As  _&lt;br&gt;
                                                             MicroFour.StrataFrame.Business.EditingStateChangedEventArgs) _&lt;br&gt;
        Handles ClientMaintenanceBO1.EditingStateChanged&lt;br&gt;
&lt;br&gt;
        Select Case e.EditingState()&lt;br&gt;
            Case BusinessEditingState.Editing &lt;br&gt;
                Me.cboReferral.Enabled = True&lt;br&gt;
            Case BusinessEditingState.Adding&lt;br&gt;
                Me.cboReferral.Enabled = True&lt;br&gt;
            Case Else&lt;br&gt;
                Me.cboReferral.Enabled = False&lt;br&gt;
        End Select&lt;br&gt;
&lt;br&gt;
    End Sub[/codesnippet]&lt;br&gt;
&lt;br&gt;
TIA &lt;br&gt;
&lt;br&gt;
Charles&lt;br&gt;</description><pubDate>Fri, 03 Apr 2009 19:06:11 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: DropDownStyle of bound Combobox is always DropDownList</title><link>http://forum.strataframe.net/FindPost22620.aspx</link><description>Bump &lt;br&gt;
&lt;br&gt;
Trent - can this go on the bugfix list (or is it perhaps addressed in latest beta?)  Definitely only happens when SF manages the readonly state</description><pubDate>Fri, 03 Apr 2009 11:20:46 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item></channel></rss>