Click here to Skip to main content
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 1:13am
Edited 17-Oct-12 1: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 OriginalGriff 200
1 George Jonsson 175
2 Kornfeld Eliyahu Peter 169
3 PIEBALDconsult 110
4 Richard MacCutchan 85
0 OriginalGriff 6,080
1 DamithSL 4,648
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,624
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 17 Oct 2012
Copyright © CodeProject, 1999-2014
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