Skip to main content

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

public void CollapseMasterRow(
    int rowHandle,
    DetailDescriptorBase descriptor = null
)

#Parameters

Name Type Description
rowHandle Int32

An integer value identifying the row by its handle.

#Optional Parameters

Name Type Default Description
descriptor DetailDescriptorBase

null

Optional. A DetailDescriptorBase object specifying the detail. This parameter is not used and defaults to null (Nothing in Visual Basic). Use the CollapseMasterRow method with only the rowHandle parameter.

#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.

See Also