CardView.CardExpanding Event

Provides the ability to prevent particular cards from being expanded.

Namespace: DevExpress.XtraGrid.Views.Card

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DXCategory("Behavior")]
public event RowAllowEventHandler CardExpanding
<DXCategory("Behavior")>
Public Event CardExpanding As RowAllowEventHandler

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. Inherited from RowEventArgs.

Remarks

The CardExpanding event is raised when attempting to expand a card. Note that it doesn't matter whether this is done by end-users or via code. The card is identified by the RowEventArgs.RowHandle parameter. To prevent it from being expanded set the RowAllowEventArgs.Allow parameter to false.

When expanding multiple cards at once via the CardView.ExpandAll method, the CardExpanding event is raised only once. In this case, the RowEventArgs.RowHandle parameter returns an GridControl.InvalidRowHandle value. The RowAllowEventArgs.Allow parameter specifies whether the cards should be expanded. Setting this parameter to false, prevents the cards from being expanded.

See Also