I have added a Master/Detail-Controller to XAF-Win module. And this raises a few issues.
a) Loading of GridView Settings does not work for DetailViews
b) Localization does not work for DetailViews
c) Double Click for edit works in wrong manner.
I have marked and commented all relevant sections in the attached Screenshot. And will attach a small sample project to reproduce.
Grid List Editors - How do I show both master and detail records in the same grid control (aka master-detail)
Answers approved by DevExpress Support
Currently, you can use the following solutions:
1. Use a built-in MasterDetailMode option described at Display a Detail View Together With a List View.
2. In ASP.NET, use the IModelListViewWeb.DetailRowMode option: ASPxGridListEditor - Support the master-detail mode.
3. In WinForms, use the Grid Control's Master-Detail Relationships. To enable master details in XAF, access the grid control as shown in the Access Grid Control Properties article and set its GridOptionsView.ShowDetailButtons and GridOptionsView.ShowDetailButtons properties to true. See examples in the following tickets:
T622001: Master detail view on detail view for related components
How to enable Master-Detail (Master Detail) mode in the grid control
4. Implement a custom List Editor, or provide a UserControl with the required functionality, as described in the following topics:
eXpressApp Framework > Task-Based Help > How to: Show a Custom Data-Bound Control in an XAF View (WinForms)
eXpressApp Framework > Task-Based Help > How to: Show a Custom Data-Bound Control in an XAF View (ASP.NET)
5. Use a ready-to-use and free eXpand module. It is demonstrated in the Common.Win module of the XVideoRental demo installed with XAF (C:\Users\Public\Documents\DevExpress Demos 1X.X\Components\eXpressApp Framework\XVideoRental).
@Libor Vylíčil: I've created a separate ticket on your behalf (T541048: Questions on implementing a custom master-detail functionality in a grid control). It has been placed in our processing queue and will be answered shortly.
Hi Marcelo,
Yes, all the above WinForms-specific solutions are available in version 14.1. Which one are you trying to implement and what difficulties you faced?
Other Answers
In version 15.2, the ASPxGridListEditor provides built-in support for the master-detail data presentation.