Skip to content

MeasurePreviewItem Event

Description

Occurs before a Preview Item is drawn.

Syntax

Public Event MeasurePreviewItem( _
    ByVal [Row](XtremeGridControl~GridRow.md) As [GridRow](XtremeGridControl~GridRow.md), _
    ByVal [hDC](#) As Integer, _
    ByVal [Width](#) As Integer, _
    ByRef [Height](#) As Integer _
)

Parameters

  • Row
    The GridRow that contains the next GridRecordItem to be drawn.

  • hDC
    Window device context for WinApi drawing calls.

  • Width
    Width of the row.

  • Height
    Height of the row.

Remarks

Note: By default, this event will not occur. The SetCustomDraw method must be used to enable this event.

This event occurs before the BeforeDrawRow event and returns the bounding rectangle of the row that will be drawn. These coordinates can be used for custom drawing.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.