<asp:GridView ID="ProjectGrid" runat="server" AllowPaging="true" AutoGenerateColumns="false" PageSize="10" CssClass="table table-bordered table-vcenter" ShowHeaderWhenEmpty="true" HeaderStyle-HorizontalAlign="Center" AlternatingRowStyle-BackColor="DimGray"> <HeaderStyle BackColor="#FF9800" ForeColor="white" CssClass="headerRow" /> <AlternatingRowStyle BackColor="white" /> <Columns> <asp:BoundField HeaderText="User Name" DataField="UserName" ControlStyle-BorderColor="Transparent" ItemStyle-Width="7%" ItemStyle-ForeColor="#0c28c3" /> <asp:BoundField HeaderText="Date" DataField="Date" DataFormatString="{0:dd/MM/yyyy}" ControlStyle-BorderColor="Transparent" ItemStyle-Width="5%" /> <asp:BoundField HeaderText="Project Name" DataField="ProjectName" ControlStyle-BorderColor="Transparent" ItemStyle-Width="15%" /> <asp:BoundField HeaderText="Task Assigned" DataField="TaskName" ControlStyle-BorderColor="Transparent" ItemStyle-Width="25%" /> <asp:BoundField HeaderText="Status" DataField="status" ControlStyle-BorderColor="Transparent" ItemStyle-Width="7%" NullDisplayText="Status Not Entered" /> <asp:BoundField HeaderText="Hours" DataField="hour" ControlStyle-BorderColor="Transparent" ItemStyle-Width="3%" /> <asp:TemplateField ItemStyle-Width="8%"> <ItemTemplate> <asp:LinkButton ID="btnEdit" runat="server" CommandName="Edit" Text="Edit" Style="color: white" CommandArgument='<%#Eval("EmpID")%>' BackColor="#00bcd4" CssClass="btn btn-primary"></asp:LinkButton> <asp:HiddenField ID="hdndate" runat="server" Value='<%#Container.DataItem("date")%>' /> <asp:LinkButton ID="btnDelete" runat="server" CommandName="Delete" Text="Delete" Style="color: white" CommandArgument='<%#Eval("EmpID")%>' OnClientClick="return confirm('Are you sure to Delete?')" BackColor="#c53c6b" CssClass="btn btn-primary"></asp:LinkButton> <asp:HiddenField ID="hdnID" runat="server" Value='<%#Eval("TaskID")%>' /> </ItemTemplate> </asp:TemplateField> </Columns> <RowStyle CssClass="grdRow" /> </asp:GridView>
ReadOnly
True
BoundField
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)