I have an object/property called User.JobPosition where the JobPosition is a string.
I have a ComboBox that is bound to a sql datasource with AppendDataBoundItems set to True that selects from a lookup table of JobPositions.
Ho do I get the ComboBox to display the User.JobPosition. I have tried this and this:
I have a ComboBox that is bound to a sql datasource with AppendDataBoundItems set to True that selects from a lookup table of JobPositions.
Ho do I get the ComboBox to display the User.JobPosition. I have tried this and this:
Neither of which work, whereas the native .NET dropDownList will allow something similar.ddlPosition.FindItemByValue(User.JobPosition.ToString))ddlPosition.Items.Insert(0, New ListItem(User.JobPosition.ToString, User.JobPosition.ToString))