Click here to Skip to main content
11,717,570 members (79,216 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Csharp.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
0 Sergey Alexandrovich Kryukov 764
1 OriginalGriff 215
2 F-ES Sitecore 210
3 Maciej Los 140
4 Jochen Arndt 120
0 Sergey Alexandrovich Kryukov 1,494
1 OriginalGriff 535
2 Maciej Los 529
3 Richard MacCutchan 440
4 CHill60 415


Advertise | Privacy | Mobile
Web03 | 2.8.150901.1 | Last Updated 17 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100