﻿<?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  » Populating a LookUpEdit...</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 15:40:34 GMT</lastBuildDate><ttl>20</ttl><item><title>Populating a LookUpEdit...</title><link>http://forum.strataframe.net/FindPost3220.aspx</link><description>I have a DevExpress LookUpEdit and i want to populate it once... when the form loads. I dont think I need anything fancy like creating a BO and then a BBS... But I'm not sure how to do this...&lt;br&gt;
&lt;br&gt;
I have a SQL statement and in Visual Studio 2003 I knew that you could create an adapter that filled a dataset and then bound your combobox to the dataset... but I dont see data adapter's in 2005 and even if i did... is that the best way to do it?&lt;br&gt;
&lt;br&gt;
Thanks</description><pubDate>Mon, 02 Oct 2006 15:17:41 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Populating a LookUpEdit...</title><link>http://forum.strataframe.net/FindPost3246.aspx</link><description>Sorry for any misunderstanding...business objects themselves are just a class and are actually very light-weight...at any rate, glad you are going :)</description><pubDate>Mon, 02 Oct 2006 15:17:41 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Populating a LookUpEdit...</title><link>http://forum.strataframe.net/FindPost3245.aspx</link><description>Yes I have populated combos and listviews using PopulationDataSourceSettings... I guess I misunderstood business objects a little.  I assumed that you only created a BO for data that you would want to manipulate (add, edit, delete). I was under the assumption that creating a BO merely to populate a control was kind of a kludge and involved too much overhead.&lt;br&gt;
&lt;br&gt;
But thanks for your input, i will use this method from now on. ;)</description><pubDate>Mon, 02 Oct 2006 15:09:53 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Populating a LookUpEdit...</title><link>http://forum.strataframe.net/FindPost3241.aspx</link><description>You don't have to use a BBS or drop a BO on the form.&amp;nbsp; Have you ever populated a combo with the PopulationDataSourceSettings?&amp;nbsp; There is a property on all combos called PopulationDataSourceSettings that allows you to populate a combo from a business object.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Look in the help under UI Layer -&amp;gt; List Control Population</description><pubDate>Mon, 02 Oct 2006 14:21:58 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Populating a LookUpEdit...</title><link>http://forum.strataframe.net/FindPost3240.aspx</link><description>Right. All I want to be able to do is fill a combo box once... when the form loads.  It just seems to me to be a lot of extra/unnecessary work to create a business object then drop that business object onto a form... then drop a BBS onto a form and then bind the BBS to the BO and the combobox to the BBS.</description><pubDate>Mon, 02 Oct 2006 14:18:42 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Populating a LookUpEdit...</title><link>http://forum.strataframe.net/FindPost3226.aspx</link><description>Mike,&lt;/P&gt;&lt;P&gt;You really shouldn't be creating adapters manually unless under very extreme circumstances....the framework provides you with all of the connection and access you need.&amp;nbsp; First of all, this is a basic feature that StrataFrame provides...list population.&amp;nbsp; You should be using the PopulationDataSourceSettings property and have it populate on the FormLoad.&amp;nbsp; You can find some more details in the help documentation or you can look at some of the samples that come with the framework.&amp;nbsp; Before I go into any more explanation I want to make sure that I haven't missed something in your post.&lt;/P&gt;&lt;P&gt;You are just wanting to populate a list or combo with some data that can be shown to the end-user and possibly bound to a field as well...correct?</description><pubDate>Mon, 02 Oct 2006 12:44:03 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>