Hi, Ive got a page with loads of controls on it that are data bound to an object behind the scenes.
In addition to that I have 2 DropDownLists which are bound to arrays.
I have set the selected value of one of the dropdown lists to a property from a class in my codebehind file, such that
Code:
<asp:dropdownlist id=ddlCurrent runat="server" Width="280px" DataValueField="ID" DataTextField="Name" DataSource="<%# arrCurrent %>" SelectedIndex="<%# _objInvestigation.Current %>">
Now
All the text boxes are bound in a similar way, and are displaying the values they pull from the class properties but
the dropDownList shows the top level entry.
Inspecting the data in debug shows that the ddl has the SelectedIndex is set to the correct value, but the control is not updating to show the selected value.
I am calling Page.DataBind after the array is intialised
So why are the text boxes displaying the correct information, but not the dropdown lists?