Oct 20, 2009, 8:52 AM
ComboBox set SelectedItem.Value shows value, not text of selected item....
When I have server side code to set the value of a drop-down, the combobox shows the ID of the selected value, not the text...
I imagine I could do this?
but that just seems wrong...
this.cmboChangeGroup.SelectedItem.Value = groups[0].CompanyGroupId.ToString();
How can I set the combobox on the server side to show the text, but maintain the fact that the selected value is chosen, so that the users doesn't have to select the item...I imagine I could do this?
this.cmboChangeGroup.SelectedItem.Value = groups[0].CompanyGroupId.ToString();
this.cmboChangeGroup.SelectedItem.Text= groups[0].CompanyGroupName;
but that just seems wrong...