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

CardView.CalcFieldHeight Event

Allows you provide custom height for individual card fields.

Namespace: DevExpress.XtraGrid.Views.Card

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

[DXCategory("Appearance")]
public event FieldHeightEventHandler CalcFieldHeight

#Event Data

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

Property Description
Column Gets the GridColumn object that identifies the currently processed field.
FieldHeight Gets or sets the card field’s height.
RowHandle Gets the handle that identifies the currently processed card.

#Remarks

A field’s height is calculated according to the CardOptionsBehavior.FieldAutoHeight property. If you need to change the default field height, handle the CalcFieldHeight event. To provide a custom height, use the event’s FieldHeight parameter.

See Also