I know how to bind a DropDownList to its own datasource, however I'm in a situation where the DDL doesn't need to be populated via a datasource (see below). However, I can't figure out how to select the value in the DDL based on the value of the item that the DDL appears in. In other words, if the value of the column 'Status' is '1', how do I select that specific value? Its it there a property of the DDL that I need to set or do I need to select the value via code behind using one of the ListViews events?
<asp:DropDownList ID="DropDownListStatus" runat="server" class="GenericControl" AutoPostBack="false" Width="100"
<asp:ListItem Value="0" Text="Not Completed" Selected="True" />
<asp:ListItem Value="1" Text="In Progress" />
<asp:ListItem Value="2" Text="Completed" />
View Complete Post