The EntitySpaces Community

Share and learn about the EntitySpaces Architecture.
Welcome to The EntitySpaces Community Sign in | Join | Help
in
Home Forums Photos

Hierarchical Model and Databinding

Last post 09-26-2007, 9:12 AM by David.Parsons. 1 replies.
Sort Posts: Previous Next
  •  09-25-2007, 7:23 AM 5300

    Hierarchical Model and Databinding

     

    Hi,

    I have two tables: Category and CategoryImage linked on CategoryID.
    Each category may have zero to many images.

    I want to have two grids on a form for a master/detail scenario, where
    every time I move to a different category the images grid shows the right images.

    Also when I add new records I want the details grid to update the hidden categoryID field automatically.

    How can I do this?

    Meaning how should I load my entities and bind them to the grids?

    Thanks.

  •  09-26-2007, 9:12 AM 5317 in reply to 5300

    Re: Hierarchical Model and Databinding

    Take a look at the EntitySpaces Demo UI Techniques - Link Two Grids example. The source code is in SampleCode.cs. It should head you in the right direction. Post back if you have further questions.
    David Neal Parsons
    www.entityspaces.net
View as RSS news feed in XML