SharpUI for .NET Support

Started by iKevan at 02-16-2007 11:41 AM. Topic has 1 replies.

Print Search Rate
Sort Posts:    
   02-16-2007, 11:41 AM
iKevan is not online. Last active: 5/28/2008 9:07:54 PM iKevan

Not Ranked
Joined on 01-26-2005
Wellington, Somerset
Posts 16
Changing text of selected item in uiComboBox
If i change the text value of the selected item in a uiComboBox with a dropdownstyle of "DropDownList", the text displayed in the combo does not change. If you drop the list, the text HAS changed in the drop down list but nothing I do changes the text in the combo itself:

cmbCurrDefault.SelectedItem.Text = "Hello World"

Each item in the list is added as a UiListItem with a text value and an itemData value (which is also a string).
   Report 
   02-16-2007, 4:16 PM
stevena is not online. Last active: 9/26/2007 10:16:34 PM stevena

Top 10 Posts
Joined on 08-28-2004
Posts 2,700
Re: Changing text of selected item in uiComboBox

Attachment: suiComboTextChange.zip
iKevan,

Thank you for the post.  After selecting an item from the list the uiComboBox updates its .Text property.  If you would like the text updated after you change the .Text property of the selected item you should also update the uiComboBox's .Text property.

I have attached a small running sample that should help you see how to approach this.  When running the sample please select an item from the uiCombobox.  Then, click the "Change Text" button to see the selected item's text as well as the uiComboBox's .Text.

I hope this information helps you.  Please let me know if I can be of further assistance.  Thank you.

   Report 
GrapeCity » Product Support » SharpUI for .NE... » Changing text of selected item in uiComboBox

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.