Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NETCsharp.net
public class LateAttendanceApprovalDto
{

public DateTime ApprovalDate { get; set; }
public EmployeeDto Employee { get; set; }
public string Remarks { get; set; }
}
 
<Columns>
                                               <asp:TemplateField ItemStyle-Width="20px">
                                                   <HeaderTemplate >
                                                       Delete
                                                   </HeaderTemplate>
                                                   <ItemTemplate>
                                                       <asp:CheckBox ID="chkDelete" runat="server" />
                                                   </ItemTemplate>
                                               </asp:TemplateField>
                                               <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" />
                                           </asp:HyperLinkField>
                                           </Columns>
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,EmployeeID.how can break the object EmployeeDto. pls help me.
Posted 17-Oct-12 0:13am
Edited 17-Oct-12 0:50am
v3

1 solution

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 457
1 OriginalGriff 430
2 Shai Vashdi 240
3 Emre Ataseven 165
4 Peter Leow 146
0 Sergey Alexandrovich Kryukov 8,944
1 OriginalGriff 5,280
2 Peter Leow 3,985
3 Maciej Los 3,535
4 Abhinav S 3,218


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 17 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid