none
CLR Relationship Objects DataSource RRS feed

  • Question

  • Hello!

    I like to use typed objects in datasources like Array, List<>, IEnumerable<> and works properly.

    But, now I have a class with a relation to another collection of objects. For example:

    class Person
    {
     (...)

     public Car[] Cars {get;}
    }

    (...)

    Person[] persons = GetPersons();

    myReport.DataSources.Add(new ReportDataSource("Persons", persons));


    So, I have a collection of persons to use as datasource, but each person have a collection of cars.

    I am triyng to create a report but I can't to set report controls to list de person cars.

    I'd like something as:

    -----------------------------------
    List of persons

    Person#1 Name, Person#1 Age
     Person#1 Cars
      Car#1
      Car#2
    Person#2 Name, Person#2 Age
     Person#2 Cars
      Car#1
      Car#2
    (...)

    -----------------------------------

    Thanks!

    Vítor

    Monday, April 24, 2006 3:03 PM