Welcome to the Xceed Community | Help
Community Search  
More Search Options

Entity framework ,entityDetailDescription, DataGridCollectionView

Sort Posts: Previous Next
  •  02-09-2011, 1:09 PM Post no. 29789

    Entity framework ,entityDetailDescription, DataGridCollectionView

    How do you bind an entity collection or an observable collection of an entity  to the EntityDetailDescription ?

    how do you bind the EntityDetailDescription to a DataGridCollectionView or to the ItemsSource property of a WPF DataGrid 4.2?

  •  02-09-2011, 1:43 PM Post no. 29790 in reply to 29789

    Re: Entity framework ,entityDetailDescription, DataGridCollectionView

    Hi Mark, 

    Please refer to the documentation concerning EntityDetailDescription for an example on how to provide details for a Data item when using entity framework: 

    http://doc.xceedsoft.com/products/XceedWpfDataGrid/DataGridDetailDescription_Class.html 


    Best Regards,

    Michel Dahdah
    Technical Support
    Xceed Software inc.
  •  02-09-2011, 1:48 PM Post no. 29791 in reply to 29790

    Re: Entity framework ,entityDetailDescription, DataGridCollectionView

    this doesn't help.  this does not show how to hook up an entity to the grid. the collectionview complains this is not an ienumerable collection
  •  02-10-2011, 2:39 PM Post no. 29824 in reply to 29791

    Re: Entity framework ,entityDetailDescription, DataGridCollectionView

    Hi Mark,

    This question is already being handled through your email support request.

    Please avoid asking your question both in the forums and by email as this may cause us to do the same work twice. Otherwise, please inform us by including a lnk to your forum post when sending the email, or by mentioning in your forum post that you already sent your question to email support. Thank you for your understanding.

    To clarify, you cannot bind a collection directly to the EntityDetailDescription, and you cannot bind an EntityDetailDescription to the ItemsSource of a DataGridControl.

    The proper order would be:
    1) create a DataGridCollectionView that has your data source (collection, DataTable, etc.) as it's Source.
    2) you can manually specify master-detail relationships by adding EntityDetailDescriptions to the DataGridCollectionView.DetailDescriptions collection.
    3) you can then set the DataGridCollectionView to be the ItemsSource of your DataGridControl.

     


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.