<asp:GridView ID="grdJobsGrid" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="500px" onrowcommand="grdJobsGrid_RowCommand" CellPadding="4" ForeColor="#333333" GridLines="None" onrowcreated="grdJobsGrid_RowCreated"> <AlternatingRowStyle BackColor="White" /> <Columns> <asp:TemplateField HeaderText="JobId" Visible="false"> <ItemTemplate> <asp:Label ID="lblJobId" runat="server" Text='<%#Eval("JobId") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Job Title"> <ItemTemplate> <asp:Label ID="lblJobTitle" runat="server" Text='<%#Eval("JobTitle") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Posted Date" > <ItemTemplate> <asp:Label ID="lblPosteddate" runat="server" Text='<%#Eval("CreatedDate") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Expired On"> <ItemTemplate> <asp:Label ID="lblExpiredOn" runat="server" Text='<%#Eval("ExpiredOn") %>'></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Applicants" ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <asp:LinkButton ID="lblApplicant" runat="server" CommandName="lnkApplicantClick" CommandArgument='<%#Eval("JobId") %>' Text='<%#Eval("ApplicantsCount") %>'></asp:LinkButton> </ItemTemplate> <ItemStyle HorizontalAlign="Center"></ItemStyle> </asp:TemplateField> <asp:TemplateField HeaderStyle-HorizontalAlign="Center" HeaderText="Action" ItemStyle-HorizontalAlign="Center"> <ItemTemplate> <asp:ImageButton ID="BtnEdit" runat="server" CausesValidation="False" CommandArgument='<%#Eval("JobId")%>' CommandName="BtnEdit" ImageUrl="~/App_Themes/Theme1/Images/edit.gif" /> <asp:ImageButton ID="BtnDelete" runat="server" CausesValidation="False" CommandArgument='<%#Eval("JobId")%>' CommandName="BtnDelete" ImageUrl="~/App_Themes/Theme1/Images/cancel.gif" /> </ItemTemplate> <HeaderStyle HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Center" Width="15%" /> </asp:TemplateField> </Columns>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)