Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4165
Multiple Bands with Complex Enumerated Lists
posted

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.

Parents
No Data
Reply
  • 34690
    Verified Answer
    Offline posted

    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

Children
No Data