G
Guest
How can I update a record from a dropdownlist in a gridview?
<asp:TemplateField HeaderText="Status">
<ItemTemplate>
<asp:Label ID="status" runat="server">
<%#Eval("status")%></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<aspropDownList runat="server">
<asp:ListItem Value="A">Active</asp:ListItem>
<asp:ListItem Value="M">Moved</asp:ListItem>
</aspropDownList>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Status">
<ItemTemplate>
<asp:Label ID="status" runat="server">
<%#Eval("status")%></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<aspropDownList runat="server">
<asp:ListItem Value="A">Active</asp:ListItem>
<asp:ListItem Value="M">Moved</asp:ListItem>
</aspropDownList>
</EditItemTemplate>
</asp:TemplateField>