Home Forums WPF controls Xceed DataGrid for WPF Can I bind to an EntitySet?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #22980 |

    I’m working on an app that uses Linq object generated by SqlMetal. When
    there is a parent->child relationship in the database, an EntitySet is
    created to store the child objects. Each child is of the same type.

    Can I bind an EntitySet to DataGrid?

    Thanks!
    Brian

    Imported from legacy forums. Posted by Brian (had 2377 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Brian,

    There should be no problems binding an EntitySet to the DataGridControl.

    However, we do not support Hierarchical Master/Detail scenarios at the moment (with detail rows from relations directly in the master grid). So you would need to bind a second DataGridControl to the the EntitySet from the Parent when this parent is “Current” ( DataGridControl.CurrentItem).

    Also, I’ve read from a <a href=”http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1510650&SiteID=1″>MSDN forum post</a> that there is a lack of change notification from the EntitySet class, therefore you should not expect a DataGridControl, bound to an EntitySet, to refresh live as the relation’s content changes.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 211 views)

    User (Old forums)
    Member
    Post count: 23064

    Marc,

    The refresh isn’t an issue for me. I can manually do this with code. The Master/Detail for displaying Parent/Child information would be great. Maybe we’ll see this in version 2?

    I just purchased a 4-user license and am looking forward to integrating the DataGrid into our apps!

    Brian

    Imported from legacy forums. Posted by Brian (had 3677 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.