Back to Devexpress

GridView.MeasurePreviewHeight Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-7f3171a4.md

latest3.1 KB
Original Source

GridView.MeasurePreviewHeight Event

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

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DXCategory("Data")]
public event RowHeightEventHandler MeasurePreviewHeight
vb
<DXCategory("Data")>
Public Event MeasurePreviewHeight As RowHeightEventHandler

Event Data

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

PropertyDescription
RowHandleGets the handle of the row whose height is to be specified.
RowHeightGets 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

AutoCalcPreviewLineCount

CalcPreviewText

CalcRowHeight

CustomDrawRowPreview

PreviewLineCount

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace