Starting with version 2012 vol 1, it is possible to enable the master-detail feature for collection properties generated by Entity Framework. See the Use Master-detail views with generic collections of type IList<T> and IEnumerable thread for details.
This example demonstrates how to bind related entities to the XtraGrid and display them in master-detail views.
Question Comments
Added By: Josh Soriano at: 8/16/2013 5:53:31 PM
my problem is im using EF5 which preferred using DbSet instead of ObjectQuery, and how can i add a row in child grid...
Added By: Hassan Gulzar at: 2/1/2015 5:30:13 AMSame issue here as Josh said above. EF5 and onwards, the line gridControl1.DataSource = new BindingSource(customersQuery, ""); becomes invalid as customersQuery needs to have a .ToList() and that defeats the purpose because 1) I cannot have the CRUD ops auto reflect on the context 2) I cannot have one save button to submit all the changes.
Added By: Nikita (DevExpress Support) at: 2/2/2015 12:21:40 AMHello Hassan,
We have a separate How to implement CRUD operations when Entity Framework 5 is used example that illustrates how to use Master-Detail mode. I see that you have published a comment about an issue that occurs when using the approach suggested in that ticket. We will post an answer to your inquiry shortly.
how can i design childlist gridview.. column names, field names etc
Added By: Nikita (DevExpress Support) at: 12/7/2015 7:50:36 AMHello,
You can use the common approach described in the Detail Pattern and Clone Views. In this case, the relation name of the pattern view should equal to the name of the related navigation property in the entity model.