6
Answers

dropdownlist in gridview

pankaj even

pankaj even

13y
13.7k
1
I have an gridview,in gridview there is an coloum active.
I active coloum I use an dropdownlist box in edit mode.I want to bind that
dropdownlist to database coloum in edit mode.

<Columns>
<asp:TemplateField HeaderText="Active" >
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("active") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="DropDownList1" runat="server">
</asp:DropDownList>
</EditItemTemplate>
</asp:TemplateField>
Answers (6)
Next Recommended Forum