Click here to Skip to main content
11,639,765 members (66,143 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 Suvendu Shekhar Giri 330
1 CPallini 177
2 F-ES Sitecore 170
3 himanshu agarwal 167
4 Sergey Alexandrovich Kryukov 159
0 OriginalGriff 9,081
1 Sergey Alexandrovich Kryukov 8,847
2 Mika Wendelius 7,027
3 Suvendu Shekhar Giri 2,650
4 F-ES Sitecore 2,558


Advertise | Privacy | Mobile
Web03 | 2.8.150731.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