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



Combobox shows first item in list when no...Expand / Collapse
Author
Message
Posted 11/15/2006 7:49:35 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 12:10:08 PM
Posts: 1,327, Visits: 3,471
I have a SF combobox that is bound to a field in a BO. If the BO has no data, the first item in the combo box is shown (incorrectly, there is no data in the BO yet). If I hit Add, the combo clears. If I hit undo, it stays clear. How do I ensure that the combo shows nothing when it first shows if the BO is empty?
Post #4541
Posted 11/16/2006 8:00:34 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 5:03:45 AM
Posts: 809, Visits: 11,674
Hi Greg.

Just sharing my experience with it ... have you tried playing with the TopMostItem property of the ComboBox? I usually type --- in it.

Cheers.

Post #4542
Posted 11/16/2006 8:14:23 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 1:09:23 PM
Posts: 2,686, Visits: 1,888
Ivan is correct... the best way to solve your problem is to set that TopMostItem property to something that makes sense.


www.bungie.net
Post #4543
Posted 11/16/2006 10:45:53 AM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 12:10:08 PM
Posts: 1,327, Visits: 3,471
Is setting the TopMostItem to nothing the same as "unselecting" any item?
Post #4548
Posted 11/16/2006 10:47:40 AM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 12:10:08 PM
Posts: 1,327, Visits: 3,471
And does this mean I will have to have code to handle this for every bound SF combobox?

Again, the situation is that I've a bound combobox, with the list being filled via a BO. If the BO the combo is bound to is empy, the first item in the list is selected initially.
Post #4549
« 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:38am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 11 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.