GridControl.ExpandMasterRow(Int32, DetailDescriptorBase) Method
Expands the specified master row and, optionally, shows the specified Detail.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v14.2.dll
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
row |
Int32 | An integer value specifying the master row by its handle. If the specified row handle is invalid, the method does nothing. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
descriptor | Detail |
null |
Optional. A Detail |
#Remarks
Use this method to expand rows or switch between active Details via code. This might be useful if you want to implement custom controls that manipulate Detail views and hide default expand buttons by disabling the TableView.ShowDetailButtons option.
The ExpandMasterRow method will not have any effect if overridden by the GridControl.MasterRowExpanding event handler.
You can also expand or collapse master rows using the GridControl.CollapseMasterRow and GridControl.SetMasterRowExpanded methods. To determine the expanded state of a row and the currently visible detail, use the GridControl.MasterRowExpanded and GridControl.GetVisibleDetail members.