﻿<?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 issue</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 09 Sep 2026 13:48:12 GMT</lastBuildDate><ttl>20</ttl><item><title>Combobox issue</title><link>http://forum.strataframe.net/FindPost13980.aspx</link><description>I have a table with 4 fields I need to write a maintenance form for:&lt;/P&gt;&lt;P&gt;PK int autoincrement&lt;/P&gt;&lt;P&gt;Category varchar(50)&lt;/P&gt;&lt;P&gt;ProcCode char(5)&lt;/P&gt;&lt;P&gt;Procedure varchar(50)&lt;/P&gt;&lt;P&gt;Unfortunately, this table is poorly designed but I can't change it.&amp;nbsp; The Category field is NOT unique and can in fact be the same for many rows.&amp;nbsp; I created a business object for this table along with a maintenance form with all the controls bound to an instance of the BO.&amp;nbsp; The Category control is a combobox with the dropdownstyle set to dropdown (the default).&amp;nbsp; I created a method in the BO to return a datatable of the distinct&amp;nbsp;Category values&amp;nbsp;in the table and used it to populate the combobox control.&amp;nbsp; The&amp;nbsp;Display and&amp;nbsp;Value&amp;nbsp;Members of the combobox are both set to the Category field.&amp;nbsp;&amp;nbsp;All rows display fine when I navigate through them but if I try&amp;nbsp;to add or&amp;nbsp;edit a row, the textbox portion of the combox control&amp;nbsp;is not editable.&amp;nbsp; In other words, I must make a selection from the entries the the list portion of the control.&amp;nbsp; I need to have the user be able to enter&amp;nbsp;a new category in the combobox control.&amp;nbsp; I thought the dropdownstyle = dropdown allowed this or am I missing something?&lt;/P&gt;&lt;P&gt;Thanks!!&amp;nbsp;&amp;nbsp;&amp;nbsp;</description><pubDate>Tue, 05 Feb 2008 14:01:13 GMT</pubDate><dc:creator>fansanitis</dc:creator></item><item><title>RE: Combobox issue</title><link>http://forum.strataframe.net/FindPost14034.aspx</link><description>The only other reason that it would not be editable is if the property is read-only.&amp;nbsp; Can you produce a sample that shows this behavior and post it?&amp;nbsp; I would like to see first hand what is going on.&amp;nbsp; Thanks.</description><pubDate>Tue, 05 Feb 2008 14:01:13 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Combobox issue</title><link>http://forum.strataframe.net/FindPost14032.aspx</link><description>The DropDownStyle is set to DropDown which I believe should allow the text portion of the control to be editable.&amp;nbsp; In any event, I've tried all 3 styles and none of them allow editing in the text portion of the control.</description><pubDate>Tue, 05 Feb 2008 13:59:48 GMT</pubDate><dc:creator>fansanitis</dc:creator></item><item><title>RE: Combobox issue</title><link>http://forum.strataframe.net/FindPost14009.aspx</link><description>Frank,&lt;/P&gt;&lt;P&gt;Do you have the DropDownSTyle of the combo set to DropDown instead of DropDownList?</description><pubDate>Tue, 05 Feb 2008 10:05:34 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Combobox issue</title><link>http://forum.strataframe.net/FindPost13984.aspx</link><description>I changed the PopulationType property to manual, declared, loaded and bound a BO to the combobox (cboCategory.DataSource = BO.CurrentTable) and set the comboboxes DisplayMember and ValueMember to the Category field in the BO.&amp;nbsp; The field values from the manually loaded BO show up in the list portion of the combobox fine but the text portion is still uneditable.&amp;nbsp; Arrrgh!!&amp;nbsp;</description><pubDate>Mon, 04 Feb 2008 13:56:26 GMT</pubDate><dc:creator>fansanitis</dc:creator></item><item><title>RE: Combobox issue</title><link>http://forum.strataframe.net/FindPost13983.aspx</link><description>I tried changing the BindingProperty to Text but the text portion of the control still remains "uneditable".</description><pubDate>Mon, 04 Feb 2008 11:05:48 GMT</pubDate><dc:creator>fansanitis</dc:creator></item><item><title>RE: Combobox issue</title><link>http://forum.strataframe.net/FindPost13982.aspx</link><description>Hiya.&lt;P&gt;Yeah, I think that the dropdownstyle is correct. Have you also set the binding property to Text, instead of SelectedValue?</description><pubDate>Mon, 04 Feb 2008 09:32:01 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>