Populating a ComboBox


Author
Message
Ian Hammond
Ian Hammond
StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)
Group: Forum Members
Posts: 57, Visits: 277
Hi,

I am a total newbie to StrataFrame and I'm trying to write a simple WInForm app. I have a maintaenance form on which I have placed 2 BO's. A secondary BO is used to populate a combobox. I have set the combo properties as have been described in the Tutorial but using my database and my combo is empty. I'm not quite sure where to look next. Also I would like to display text in the item data and an identifier for the valuemember property, but I cannot find any documentation.

Could anyone advise,

Many thanks.

Replies
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Ian and welcome to the group.



There are many ways to populate a combobox, in your case you want to use a BO, basically what you do is in the BO that will populate the data for the combobox you create a Fill method that will get the data needed for the BO, then use the Combobox's PopulationDataSourceSettings to setup the BO and the method that you create to populate it. There are some sample for this in several messages in the forums.



I am attaching a sample posted by Trent (I think) which shows several ways of populating comboboxes.


Edhy Rijo

Attachments
ComboBoxSample.zip (157 views, 883.00 KB)
Ian Hammond
Ian Hammond
StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)StrataFrame Novice (81 reputation)
Group: Forum Members
Posts: 57, Visits: 277
Hi,

Many thanks for the reply. I am currently using VS2005 which won't load up the samp,e project. Is there an earlier version available. Many thanks again,

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: 6.9K
You will have to create a new solution and add the classes into that project.  All samples that we produce at this point are in VS2008.  If you are a member of MSDN then you can go online and download this.  I would highly recommend moving over to VS2008 as it is a far better IDE and will make your transition forward easier.
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