GridView.SetMasterRowExpanded(Int32, String, Boolean) Method
Opens or closes a master row's detail View identified by the relationship's name.
public void SetMasterRowExpanded( int rowHandle, string relationName, bool expand )
Public Sub SetMasterRowExpanded( rowHandle As Integer, relationName As String, expand As Boolean )
An integer value identifying the master row by its handle.
A string representing the required relationship's name.
true to open the specified detail; false to hide it.
This overload opens or hides a specific detail View which is identified by the name of the relationship it displays. To open or hide a detail View by its index amongst the other details, the GridView.SetMasterRowExpandedEx method can be used. The SetMasterRowExpanded and GridView.SetMasterRowExpandedEx methods are equivalent and differ only in the second parameter which identifies the required detail View. See the GridView.SetMasterRowExpandedEx topic for more information.
Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the SetMasterRowExpanded member must not be invoked for these Views. The SetMasterRowExpanded member can only be used with real Views that are displayed within the Grid Control. The real Views with which an end-user interacts at runtime can be accessed using the following methods.
- GridControl.MainView - returns the top most View in a grid;
- GridControl.FocusedView - returns the focused View;
- GridControl.DefaultView - returns the currently maximized View;
- the sender parameter of View specific events;
- GridView.GetDetailView - returns a detail clone View for a specific master row.