Skip to main content
A newer version of this page is available. .

GridView.MeasurePreviewHeight Event

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

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.1.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MeasurePreviewHeight event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also