<asp:GridView ID="GridView1"="Gv1" AutoGenerateColumns="true" runat="server" DataKeyNames="nurse_id"
AutoGenerateColumns="true">
<Columns>
<asp:TemplateField HeaderText="Name" SortExpression="name">
<ItemTemplate>
<asp:HiddenField ID="induid" runat="server" Value='<%# Eval("nurse_id")%>' />
<asp:Label runat="server" ID="lblname" Text='<%# Eval("name") %>' /></ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtrewardstype" MaxLength="50" runat="server" Width="100" onkeypress="return isSingleQuoat(event)"></asp:TextBox>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle ForeColor="maroon" Font-Underline="true" HorizontalAlign="left" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Address" SortExpression="address">
<ItemTemplate>
<asp:Label runat="server" ID="lbladdress" Text='<%# DataBinder.Eval(Container.DataItem,"address") %>' />
</ItemTemplate>
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle ForeColor="maroon" Font-Underline="true" HorizontalAlign="left" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Email" SortExpression="email">
<ItemTemplate>
<asp:Label runat="server" ID="lblemail" Text='<%# DataBinder.Eval(Container.DataItem,"email") %>' />
</ItemTemplate>
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle ForeColor="maroon" Font-Underline="true" HorizontalAlign="left" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Phone" SortExpression="phone">
<ItemTemplate>
<asp:Label runat="server" ID="lblmobile" Text='<%# DataBinder.Eval(Container.DataItem,"phone") %>' />
</ItemTemplate>
<ItemStyle HorizontalAlign="Left" />
<HeaderStyle ForeColor="maroon" Font-Underline="true" HorizontalAlign="left" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Active" SortExpression="Active">
<ItemTemplate>
<%# (Boolean.Parse(Eval("Active").ToString())) ? "Yes" : "No" %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Edit" Visible="false">
<ItemTemplate>
<asp:ImageButton ID="btn_edit" ToolTip="Edit" runat="server" ImageUrl="~/images/edit-over.gif"
OnClick="btn_edit_Click" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" ForeColor="Black" />
</asp:TemplateField>
<%----%>
<asp:TemplateField HeaderText="Delete">
<ItemTemplate>
<asp:ImageButton ToolTip="Delete" ID="btn_remove" OnClick="btn_remove_Click" runat="server"
ImageUrl="~/images/remove.gif" OnClientClick="document.getElementById('ctl00_ContentPlaceHolder1_hidden111').value='1111';return confirm('Are you sure to delete this Nusre?Do you want to continue?');" />
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" ForeColor="black" />
</asp:TemplateField>
</Columns>
<HeaderStyle ForeColor="Brown" />
</asp:GridView>