StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



ComboBox created at runtime not populatingExpand / Collapse
Author
Message
Posted 06/16/2006 11:36:56 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 6:18:33 PM
Posts: 329, Visits: 480
I am trying to create several controls for a dynamic form, one of which is a DevEx ComboBox.  I have the following code which puts the combo box on the form, but doesn't populate with any data.  The TextEdit I created before it works exactly as I would like for it to.  What am I missing here?

Dim fldIncrement As New DevEx.TextEdit
Dim cboCurrency As New DevEx.ComboBoxEdit
Dim PopSettings As New MicroFour.StrataFrame.UI.ListViewPopulationSettings

fldIncrement.BusinessObject = Me
fldIncrement.BindingField = "FloatIncr"

With cboCurrency
  .BusinessObject =
Me
 
.BindingField = "CurrencyType"
 
.BusinessObjectEvaluated = True
 
PopSettings.BusinessObjectType = "BBS.Biz.ChkSourceBO"
 
PopSettings.DisplayFieldNames.Add("CurrencyType")
  PopSettings.FormatString =
"{0}"
 
PopSettings.MethodToExecute = "FillAll;"
  PopSettings.ValueMember = "CurrencyType"
  .
PopulationDataSourceSettings = PopSettings
  .PopulationType = MicroFour.StrataFrame.UI.ListPopulationType.BusinessObject
End With

 

Post #1558
Posted 06/16/2006 1:03:56 PM
StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: 01/15/2008 8:44:34 AM
Posts: 40, Visits: 91
Call the cboCurrency.Requery() method for population.
Post #1559
Posted 06/16/2006 5:15:11 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 6:26:12 PM
Posts: 4,901, Visits: 4,887
Andria,

I agree with Steve, it looks like you are just missing the Requery call to reload the list.  Let me know if this doesn't work for you.

Post #1561
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 6:33pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.109. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.