StrataFrame Forum

Combobox shows first item in list when no data in BO

http://forum.strataframe.net/Topic4541.aspx

By Greg McGuffey - 11/15/2006

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?
By Ivan George Borges - 11/16/2006

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.

By StrataFrame Team - 11/16/2006

Ivan is correct... the best way to solve your problem is to set that TopMostItem property to something that makes sense.
By Greg McGuffey - 11/16/2006

Is setting the TopMostItem to nothing the same as "unselecting" any item?
By Greg McGuffey - 11/16/2006

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.