I cannot set the default combobox 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 result: Current Org tag Id = 285 Selected value ddlRUC =
Note that ddlRUC.SelectedValue is not set to 285. Do I need to bind a data source to use the SelectedValue property? If so, how can I set the default item specified in a combo box that is not related?
source
share