Re: Changing text of selected item in uiComboBox
SharpUI for .NET Support
Changing text of selected item in uiComboBox
02-16-2007, 11:41 AM
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).
Re: Changing text of selected item in uiComboBox
02-16-2007, 4:16 PM
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.