Back to Devexpress

DataGridView.GroupCollapsing Event

mobilecontrols-devexpress-dot-xamarinforms-dot-datagrid-dot-datagridview-51d6a7c0.md

latest2.1 KB
Original Source

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

csharp
public event RowAllowEventHandler GroupCollapsing

Event Data

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

PropertyDescription
AllowGets or sets whether to allow or prohibit an operation with the row.
RowHandleGets 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

DataGridView Class

DataGridView Members

DevExpress.XamarinForms.DataGrid Namespace