Skip to main content

DataGridView.GroupCollapsing Event

Occurs before a group of rows is collapsed.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

Declaration

public event RowAllowEventHandler GroupCollapsing

Event Data

The GroupCollapsing event's data class is RowAllowEventArgs. The following properties provide information specific to this event:

Property Description
Allow Gets or sets whether to allow or prohibit an operation with the row.
RowHandle Gets the grid’s row handle. Inherited from RowEventArgs.

Remarks

The GroupCollapsing event is raised before a group of data rows is collapsed from UI or code (CollapseGroupRow). You can handle this event and set its parameter’s Allow property to false to prevent a group from being collapsed.

When you call the CollapseAllGroups method, the GroupCollapsing event is raised for each group.

After the group row has been collapsed, the GroupCollapsed event is raised.

See Also