Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LayoutView.CardExpanding Event

Provides the ability to prevent particular cards from being expanded.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

[DXCategory("Behavior")]
public event RowAllowEventHandler CardExpanding

#Event Data

The CardExpanding 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.

#Remarks

The CardExpanding event is raised when attempting to expand 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 expanded set the RowAllowEventArgs.Allow parameter to false.

See Also