Click here to Skip to main content
15,072,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
public class LateAttendanceApprovalDto

public DateTime ApprovalDate { get; set; }
public EmployeeDto Employee { get; set; }
public string Remarks { get; set; }

                                               <asp:TemplateField ItemStyle-Width="20px">
                                                   <HeaderTemplate >
                                                       <asp:CheckBox ID="chkDelete" runat="server" />
                                               <asp:BoundField DataField="LateAttendanceApprovalID" HeaderText="LateApprovalID" ItemStyle-Width="20px" />

                                               <asp:BoundField DataField="SubmitDate" HeaderText="Submit Date" ItemStyle-Width="20px" />
                                               <asp:BoundField DataField="ArrivingTime" HeaderText="ArrivingTime" ItemStyle-Width="20px" />
                                               <asp:BoundField DataField="Remarks" HeaderText="Remarks" ItemStyle-Width="20px" />
                                               <asp:BoundField DataField="ApprovedBy" HeaderText="ApprovedBy" ItemStyle-Width="20px" />
                                               <asp:BoundField DataField="EmployeeID" HeaderText="EmployeeID" ItemStyle-Width="20px" />
                                               <asp:HyperLinkField DataNavigateUrlFields="LateAttendanceApprovalID" DataNavigateUrlFormatString="LateAttendance.aspx?LateAttendanceApprovalID={0}&amp;Flag=y"
                                               HeaderText="Edit" Text="Edit">
                                               <ItemStyle Width="20px" VerticalAlign="Middle" HorizontalAlign="Center" />

This is my Grid column

Here EmployeeDto contain EmployeeName,EmployeeID,ApprovedBy etc.Now i want to show LateAttendanceApprovalDto in grid view .But Approval Date and Remarks show grid view.Now grid show ApprovalDate Remarks and EmployeeDto but not show EmployeeName, can break the object EmployeeDto. pls help me.
Updated 17-Oct-12 0:50am

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900