Populating a LookUpEdit...


Author
Message
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
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...



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?



Thanks
Replies
StarkMike
StarkMike
Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)Advanced StrataFrame User (738 reputation)
Group: Forum Members
Posts: 436, Visits: 944
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.
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
You don't have to use a BBS or drop a BO on the form.  Have you ever populated a combo with the PopulationDataSourceSettings?  There is a property on all combos called PopulationDataSourceSettings that allows you to populate a combo from a business object. 

Look in the help under UI Layer -> List Control Population

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search