Back to Devexpress

LayoutView.CardExpanding Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutview-866dcbc5.md

latest3.0 KB
Original Source

LayoutView.CardExpanding Event

Provides the ability to prevent particular cards from being expanded.

Namespace : DevExpress.XtraGrid.Views.Layout

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DXCategory("Behavior")]
public event RowAllowEventHandler CardExpanding
vb
<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:

PropertyDescription
AllowGets or sets a value specifying whether the current operation is allowed.
RowHandleGets 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

AllowExpandCollapse

CardCollapsed

CardCollapsing

CardExpanded

SetCardCollapsed(Int32, Boolean)

LayoutView Class

LayoutView Members

DevExpress.XtraGrid.Views.Layout Namespace