pankaj even

pankaj even

  • NA
  • 10
  • 35.5k

dropdownlist in gridview

Feb 2 2011 8:38 PM
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)