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
120
Same Type at different levels of hierarchy not rendering
posted

I am trying to use the hierarchical layout of the XamDataGrid to render our structure.

The problem I'm having is that I have objects of the same type at different levels of the hierarchy.

For example:

class A {

... some properties

}

class B {

... some properties

    public IReadOnlyList<A> As { get; }

}

class C {

... some prperties

    public IReadOnlyList<A> As { get; }

    public IReadonlyList<B> Bs { get; }

}

I have an <igDp:FieldLayout Key="_"/> for A, B, and C.

The problem I'm encountering is that when I expand C, I can expand the A property and see the fields in the individual A records.  I can also expand the Bs and see the properties of the B records.  However, when I expand the As under the B records, I get empty rows (all that is displayed is the row indicator).

It appears as if once the layout has been matched at one level of the hierarchy, it can't match at a deeper level.  As the records are of the same type (Key=""), I don't see a way to even define a duplicate layout and disambiguate it.

Any help you can provide would be greatly appreciated.