Posted on: 8/22/2014 11:36:08 PM | Views : 362

I have a grid view with templatefields. One of them is:
<asp:TemplateField HeaderText="Text Color" SortExpression="TextColor"> <EditItemTemplate> <asp:TextBox ID="gvtbFeatureTextColor" runat="server" Text='<%# Bind("TextColor") %>' Width="150px" /> </EditItemTemplate> <ItemTemplate> <asp:Label ID="gvlblFeatureTextColor" runat="server" Text='<%# Bind("TextColor") %>' Width="150px" /> </ItemTemplate> </asp:TemplateField> But I'd like to change it to a drop list:
<asp:DropDownList runat="server" ID="dlBackgroundColor"> <asp:ListItem>AliceBlue</asp:ListItem> <asp:ListItem>AntiqueWhite</asp:ListItem> <asp:ListItem>Aqua</asp:ListI ...

Go to the complete details ...