I realize that you can easily set up a dropdownlist in a gridview using a SqlDataSource, but what about a limited list containing only listitems? Putting a Bind in the selected value does not seem to work without a DataSource. Here’s an example of what I’ve got so far.
<EditItemTemplate>
<asp:DropDownList ID="Fund" runat="server" SelectedValue='<%# Bind("Fund") %>' >
<asp:ListItem Value="">---</asp:ListItem>
<asp:ListItem Value="Test1">Test</asp:ListItem>
<asp:ListItem Value="Test2">Test2</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
It seems like such a stupid little problem to have, to the point where I’m about to just go make a static 10 row table in my database.
Try this: