Skip to main content

TcxCustomListView.OnDrawItem Event

Occurs when an item must be drawn within a list view.

Declaration

property OnDrawItem: TLVDrawItemEvent read; write;

Remarks

The OnDrawItem event occurs when an item must be drawn within a list view. Unlike the custom draw events, the OnDrawItem event is received only if the OwnerDraw property is set to True. The custom draw events occur at more points during the paint process and there is a difference in information provided on drawn item state.

Parameter Meaning
Sender The TcxListView control, which fires the event.
Item The item, which is redrawn.
Rect The rectangle, in which the item is drawn.
State The state of the item (e.g. selected, disabled, hot, and so on).
See Also