Hi,
I have 2 class files.
public class Employee
{
public int EmpId { get; set; }
public string EmpName { get; set; }
public IList<Dept> DeptCollection { get; set; }
}
public class Department
{
public int DeptId { get; set; }
public string DeptName { get; set; }
}
I am fetching ILIST<Employee> and binding it to my radgrid.
I want to display something like
EmpId EmpName DeptName
in the
<telerik:GridBoundColumn ReadOnly="true" HeaderText="Employee Name"DataField="EMP_NAME" />
but how can I bind the deptname field from the nested object?
Regards,
aradhya
I have 2 class files.
public class Employee
{
public int EmpId { get; set; }
public string EmpName { get; set; }
public IList<Dept> DeptCollection { get; set; }
}
public class Department
{
public int DeptId { get; set; }
public string DeptName { get; set; }
}
I am fetching ILIST<Employee> and binding it to my radgrid.
I want to display something like
EmpId EmpName DeptName
in the
<telerik:GridBoundColumn ReadOnly="true" HeaderText="Employee Name"DataField="EMP_NAME" />
but how can I bind the deptname field from the nested object?
Regards,
aradhya