windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutview-0f6b03b3.md
Provides the ability to prevent particular cards from being collapsed.
Namespace : DevExpress.XtraGrid.Views.Layout
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
[DXCategory("Behavior")]
public event RowAllowEventHandler CardCollapsing
<DXCategory("Behavior")>
Public Event CardCollapsing As RowAllowEventHandler
The CardCollapsing event's data class is RowAllowEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Allow | Gets or sets a value specifying whether the current operation is allowed. |
| RowHandle | Gets the row’s handle (position). For the ColumnView.RowUpdated event, this property specifies the previous handle (position) of the currently processed row. NewItemRowHandle value when a new row is added. Inherited from RowEventArgs. |
The CardCollapsing event is raised when an attempt is made to collapse a card (regardless of whether this is being performed in code or by an end-user at runtime). The card is identified by the RowEventArgs.RowHandle parameter. To prevent it from being collapsed set the RowAllowEventArgs.Allow parameter to false.
See Also