StrataFrame Forum
Home
»
StrataFrame Application Framework - V1
»
Issues
TopMostItem and enumeration population...
http://forum.strataframe.net/Topic9775.aspx
By StarkMike
-
6/25/2007
I'm filling a comboboxedit based on an enumeration and using the TopMostItem property... however whenI run my app... the topmost item doesnt appear in my comboboxedit by default.
I've tried setting the selectedvalue to -1 in both the Load and Shown events of the form and tried to set it to -1 on a click event... still no luck.
Any thoughts?
By Trent L. Taylor
-
6/25/2007
Do you get the same behavior with the StrataFrame combo?
By StarkMike
-
6/25/2007
Yes.
By Trent L. Taylor
-
6/25/2007
THen you must not be setting the TopMostItem properly. How are you setting this? You just need to provide a description and a value. This will only work if you are using an automated population property like the Enumeration.
By StarkMike
-
6/25/2007
Here's a screenshot of it's properties. Sorry for the large size... I wanted you to be able to read it.
I didn't think I was doing anything out of the ordinary.
By Trent L. Taylor
-
6/25/2007
Give this sample a try
By StarkMike
-
6/25/2007
Ok, I
FINALLY
figured it out... I was trying to set the SelectedValue property to -1
INSTEAD
of setting the SelectedIndex property to 0! (0 because I am using the DevExpress wrapped ComboBoxEdit) I
HATE
it when I make those
STUPID
mistakes. They are
SO
frustrating.
Thanks for your help.
By Trent L. Taylor
-
6/26/2007
LOL...don't worry about it
We have all been there!