Skip to main content

GridView.CanCollapseMasterRowEx(Int32, Int32) Method

Indicates whether a master row can be collapsed.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation


public virtual bool CanCollapseMasterRowEx(
    int rowHandle,
    int relationIndex


Name Type Description
rowHandle Int32

An integer value identifying the master row by its handle.

relationIndex Int32

A zero-based integer specifying the index of the relationship in the data source.


Type Description

true if the master row can be collapsed; otherwise, false.


This member supports the grid control’s internal infrastructure and is not intended to be used from your code.

The method returns false if the master row is collapsed already. Otherwise, the method raises the GridView.MasterRowCollapsing event to determine whether collapsing is allowed.


Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the CanCollapseMasterRowEx member must not be invoked for these Views. The CanCollapseMasterRowEx member can only be used with Views that display real data within the Grid Control. Use the following methods to access these Views with which an end user interacts at runtime.

See Also