GridControl.CollapseMasterRow(Int32, DetailDescriptorBase) Method
Collapses the detail section for the specified row.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v14.2.dll
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
row |
Int32 | An integer value identifying the row by its handle. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
descriptor | Detail |
null |
Optional. A Detail |
#Remarks
This method can be used when implementing custom controls that control Detail section visibility. In this case, you might want to hide default expand buttons by disabling the TableView.ShowDetailButtons option.
This method may have no effect if overridden in the GridControl.MasterRowCollapsing event handler.
To determine the expanded state of master rows and Detail visibility, use the GridControl.IsMasterRowExpanded, GridControl.GetVisibleDetail and GridControl.GetVisibleDetailDescriptor methods.