﻿<?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-question</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 09:05:53 GMT</lastBuildDate><ttl>20</ttl><item><title>combobox-question</title><link>http://forum.strataframe.net/FindPost32526.aspx</link><description>Hi there,&lt;br/&gt;&lt;br/&gt;is it possible to fill the dropdown-list of a multi-column combobox manually? And how has this to be done?&lt;br/&gt;&lt;br/&gt;Thanks in Advance&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Wed, 07 May 2014 05:31:24 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: combobox-question</title><link>http://forum.strataframe.net/FindPost32540.aspx</link><description>Hi Ben,&lt;br/&gt;&lt;br/&gt;thanks for the explanation, I will try it immediately.&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Wed, 07 May 2014 05:31:24 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: combobox-question</title><link>http://forum.strataframe.net/FindPost32531.aspx</link><description>Howdy Thomas,&lt;br/&gt;&lt;br/&gt;&lt;div&gt;Yes, you can use the MultiColumns and populate manually, but you still have to use the .NET-style data source for the combo box. &amp;nbsp;Basically, you have to have a list behind the combo box that defines the items, and the easiest way to do this is with a DataTable, but you can just as easily create a custom class with a few properties and use a generic list with a BindingSource, but the DataTable already has all of those interfaces on it.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Create a DataTable with 3 columns, "Display" (string), "Value" (object), and "DropDown" (string). &amp;nbsp;&lt;/li&gt;&lt;li&gt;Populate it with rows for the items you want in the combo box&lt;/li&gt;&lt;ol&gt;&lt;li&gt;The value in the Display column will show as the selected item when the combo box is closed&lt;/li&gt;&lt;li&gt;The value in the Value column will be the SelectedValue on the combo box for binding&lt;/li&gt;&lt;li&gt;The value in the DropDown column will be what is used to render the drop down. &amp;nbsp;Combine all of the columns into this field and pipe delimit them: &amp;nbsp;"Column 1|Column 2|Column 3" &amp;nbsp;The pipes are used to split the columns when rendering the drop down.&lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Set the UseMultiColumns to true&lt;/li&gt;&lt;li&gt;Set DropDownMember to "DropDown"&lt;/li&gt;&lt;li&gt;Set DisplayMember to "Display"&amp;nbsp;&lt;/li&gt;&lt;li&gt;Set ValueMember to "Value"&lt;/li&gt;&lt;li&gt;Set the DataSource property to your data table.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;That should do it. &amp;nbsp;Anything you put into the DataTable gets added as a row in the combobox.</description><pubDate>Wed, 30 Apr 2014 14:12:22 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: combobox-question</title><link>http://forum.strataframe.net/FindPost32528.aspx</link><description>Hi Edhy,&lt;br/&gt;&lt;br/&gt;thanks for your reply. I use the combobox already with using the VO-populationtypwe. But there are two reasons ti add items manually&lt;br/&gt;&lt;br/&gt;. The dropdown-items are generated dynamically and&lt;br/&gt;&lt;br/&gt;- I have encountered some problems with combo-boxes populated by a BO (This will be a new topic)&lt;br/&gt;&lt;br/&gt;Populating a combobox is not a problem, but I was curious if I can populate a sf-combobox with a multiline dropdown-list. &lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Tue, 29 Apr 2014 02:08:21 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: combobox-question</title><link>http://forum.strataframe.net/FindPost32527.aspx</link><description>Hi Thomas,&lt;br/&gt;&lt;br/&gt;I have never had the need to manually populate a comobox, but it is doable.&amp;nbsp; Based on the SF help file "List Control Population" you need to follow the examples in the Microsoft's .NET Developers Guide.&lt;br/&gt;&lt;br/&gt;Now back to your question, do you really need to populate the list manually or will you be using any of the SF sources?&amp;nbsp;&amp;nbsp; Be aware that you can show multiple columns with SF population events.</description><pubDate>Mon, 28 Apr 2014 12:23:46 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>