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
125
Unable to bind to a Dictionary<MyEnum, MySubObj>
posted

Hi,

I am unable to bind to a dictionary that is a child collection.  Here are my classes

ParentClass

{

    string Name,

    Dictionary<MyEnum, ChildClass> ChildClasses

}

The Grid Datasource is a List<ParentClass>.

I am trying to bind using Unbound fields  using the following:

<igDP:UnboundField Name="Name"  BindingPath="Name > </igDP:UnboundField>

<igDP:UnboundField Name="ChildProperty"  BindingPath="ChildClasses[MyEnum.Val].Property1" > </igDP:UnboundField>

But it does not seem to display anything.

Thanks in Advance,

Sandy