So I have this binding problem
I want to bind a radgrid to List<Class1>
On the grid I want to display the following columns:
UserName
Make
Model
I also want the Make and Model to be grouped by UserName
The classes:
public class Class1
{
public Class1()
{
Class2Objects = new List<Class2>();
}
public string Username { get; set; }
public List<Class2> Class2Objects { get; set; }
}
Public class Class2
{
Public string Make{get;set;}
Public string Model{get;set;}
}
The issue is I don't know how to bind to the sub-collection Class2Objects property of Class1
Can this be done
Thanks,
William