BeforeDrawRow Event
Description
Occurs before each GridRecordItem is drawn in each GridRow.
Syntax
Public Event BeforeDrawRow( _
ByVal Row As GridRow, _
ByVal Item As GridRecordItem, _
ByVal Metrics As GridRecordItemMetrics _
)
Parameters
-
Row
The GridRow that contains the next GridRecordItem to be drawn. -
Item
The GridRecordItem in the GridRow that is about to be drawn. -
Metrics
Dynamic metrics (backcolor, forecolor, text, font) of the GridRecordItem about to be drawn.
Remarks
Note: By default, this event will not occur. The SetCustomDraw Method must be used to enable this event.
This event is executed for each GridRecordItem in the GridControl when the Redraw Method is called.
On mouse over, this event is triggered for the individual GridRecordItem that the mouse is currently over and will be called each time the mouse moves. Any time the GridControl needs to be redrawn, this event is triggered.
The Metrics parameter is used for dynamic metrics only. This object groups and stores the general drawing metrics of the Item parameter's GridRecordItem, such as the forecolor, backcolor, font, and text.
See Also
- TrackControl Control
- Redraw Method
- MeasureRow Event
- DrawItem Event
- SetCustomDraw Method
- XTPGridCustomDraw Enumeration
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.