Hello,
Say we have a list of Offices, and Offices has a list of Employees.
public class Office
{
public string Name {get;set;}
public IEnumberable<Employee> Employees {get;set;}
}
Is there a way to set the datasource equal to the list of offices and have it create the second band with employees without having to map Office and Employee to a SqlTable with relations?
Thanks,
M.
Hello Michael,
I can confirm that it is possible to set the UltraGrid’s data source to a collection of Office in this case and it will automatically create the second band for Employees.
I am attaching a sample project with a similar data structure as the one you have provided to demonstrate.
Please let me know if you have any other questions or concerns on this matter.
UltraGridHierarchicalDemo.zip