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
100
Header detail with entetymodel problem
posted

Hello support team,

We seemed to have hit a bug in de infragistics forms on a header detail form.

When using a database edmx context model  with an association between two tables (header detail) (1..0 -> *)

With a headerbindingsource bound to the databasemodel and detailbindingsource bound to the headerbindingsource with datamember “Detail” on the ultragrid

In my header class my  detaillines seem to resolve in an Icollection where i get a count and isreadonly column instead of my detaillines in my ultragrid

Public Overridable Property AankoopborderelDetail As ICollection(Of AankoopborderelDetail) = New HashSet(Of AankoopborderelDetail)

I worked around this problem by binding my detailtable to the detailbindingsource so it’s “solved” but I was wondering if this was a known issue, or if there is an other way to keep this relation?

Thanks,

Parents
No Data
Reply
  • 21795
    Offline posted

    Hello Serge,

    I followed the steps you suggested and was unable to reproduce this issue. I created a small sample project. In my project I created two classes Header and Details with one-to-many relation. Then I created code-first database and context. Whether I am set the grid’s DataSource to Headers or Details collection of my context it is always shows the data correctly.

    Attached is the sample I tested this with. Please check my sample and try to reproduce your issue with it. If my sample does not show correctly what you are trying to achieve fill free to modify it and send it back to me, or if you have a sample of your own reproducing this behavior, please send it to me for further investigation.

    Looking forward to your reply.

    UtraGridBindToEFVB.zip
Children
No Data