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

Parents
  • 138253
    Offline posted

    Hello Sandy,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want using similar data as yours. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.

     

    Looking forward for your reply.

    XamDataGridDictionary.zip
Reply Children