﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » Adding Items to ComboBox</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 00:19:01 GMT</lastBuildDate><ttl>20</ttl><item><title>Adding Items to ComboBox</title><link>http://forum.strataframe.net/FindPost11055.aspx</link><description>I need to add some functionality similar to the new user-defined category that you added to the DDT. I also believe the same functionality exists in the permissions editor.&amp;nbsp; I added a new field to my table to store the category value. &lt;/P&gt;&lt;P&gt;What technique did you guys use to populate the category combobox with unique category values and drop the cateogry when it was no longer in use. Did you create another table to maintain these values?&amp;nbsp; &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;TIm</description><pubDate>Mon, 27 Aug 2007 10:35:16 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Adding Items to ComboBox</title><link>http://forum.strataframe.net/FindPost11104.aspx</link><description>I think the key would be to have an index on the category (or whatever column your doing the select distinct on). Otherwise, there will be temp tables and table scans and it gets ugly fast.</description><pubDate>Mon, 27 Aug 2007 10:35:16 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Adding Items to ComboBox</title><link>http://forum.strataframe.net/FindPost11080.aspx</link><description>We haven't had it slow down perceptively.&amp;nbsp; If it ever does, you could certainly cache off the values in a Shared business object somewhere.&amp;nbsp; I'm sure you might be able to find something on Google about the performance of a SELECT DISTINCT.</description><pubDate>Mon, 27 Aug 2007 08:25:40 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Adding Items to ComboBox</title><link>http://forum.strataframe.net/FindPost11063.aspx</link><description>Will this be slow on large tables?</description><pubDate>Fri, 24 Aug 2007 10:36:35 GMT</pubDate><dc:creator>Tim Dol</dc:creator></item><item><title>RE: Adding Items to ComboBox</title><link>http://forum.strataframe.net/FindPost11059.aspx</link><description>Actually, when we allow the user to manually type the category, we just fill the combo box by using &lt;/P&gt;&lt;P&gt;SELECT DISTINCT category FROM MyTable ORDER BY category&lt;/P&gt;&lt;P&gt;which just retrieves all of the values.&amp;nbsp; When all of the records using the category are removed or moved to another category, it just no longer appears in the list because it's no longer in the table and therefore doesn't get picked up by the query.</description><pubDate>Fri, 24 Aug 2007 09:43:49 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>