none
Nested Object Collection Datasource RRS feed

  • Question

  • Hi
    I am binding an Object Datasource into WEB FORM Report Viewer Control in Local Mode. Object Source contains child/nested object collection. In order to bind this, I used the expression, like this "ParentPropertyName.Value.ChildPropertyName", as most of the posts suggested (http://www.gotreportviewer.com/objectdatasources/index.html) . But Still I am getting "#Error" while rendering.  Do I need create sub report in order to bind the Child Object Collection?

    My RDLC file Dataset Info for you reference. The Child object collection, name is FailedCourses.

    <DataSets>

    <DataSet Name="AthleticEligibilityReport">

    <Fields>

    <Field Name="StudentName">

    <DataField>StudentName</DataField>

    <rd:TypeName>System.String</rd:TypeName>

    </Field>

    <Field Name="DateOfBirth">

    <DataField>DateOfBirth</DataField>

    <rd:TypeName>System.Nullable`1[System.DateTime]</rd:TypeName>

    </Field>

    <Field Name="Age">

    <DataField>Age</DataField>

    <rd:TypeName>System.Int32</rd:TypeName>

    </Field>

    <Field Name="FailedCourses">

    <DataField>FailedCourses</DataField>

    <rd:TypeName>AthleticEligibilityFailedCoursesReport[]</rd:TypeName>

    </Field>

    </Fields>

    <Query>

    <DataSourceName>AthleticEligibilityReport</DataSourceName>

    <CommandText>

    </CommandText>

    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>

    </Query>

    <rd:DataSetInfo>

    <rd:DataSetName>

    </rd:DataSetName>

    <rd:TableName>

    </rd:TableName>

    <rd:ObjectDataSourceType>ReportsDAL, App_Code.np0i0gm0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null</rd:ObjectDataSourceType>

    </rd:DataSetInfo>

    </DataSet>

    </DataSets>


    Amzu
    Wednesday, March 18, 2009 10:14 PM

Answers