Skip to main content

GridView.MeasurePreviewHeight Event

Provides the ability to specify the height of individual preview sections in pixels.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.1.dll

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

Declaration

[DXCategory("Data")]
public event RowHeightEventHandler MeasurePreviewHeight

Event Data

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

Property Description
RowHandle Gets the handle of the row whose height is to be specified.
RowHeight Gets or sets the row’s height.

Remarks

By default, the height of all preview sections is specified by the View’s GridView.PreviewLineCount property.

The MeasurePreviewHeight event is raised for each row and allows the height of its preview section to be specified. The event parameter’s RowHeightEventArgs.RowHandle property allows the processed row to be identified. The RowHeightEventArgs.RowHeight property allows the height of the processed preview section to be specified.

Note

If the Row Auto-Height or Preview Sections feature is enabled, pixel-based vertical row scrolling is not in effect. See GridOptionsBehavior.AllowPixelScrolling to learn more.

See Also