I cannot set the default combobox selected value for an unbound combobox. Here is my code:
System.Console.WriteLine("Current Tag Org Id = " + CurrentTag.Org.OrgId); ddlRUC.SelectedValue = CurrentTag.Org.OrgId; System.Console.WriteLine("ddlRUC selected value = " + ddlRUC.SelectedValue);
Here is the output: Current Tag Org Id = 285 ddlRUC selected value =
Note that ddlRUC.SelectedValue has not been set to 285. Does the datasource need to be bound in order to use the SelectedValue property? If so, how do I set the default item shown in a combobox that is not bound?