Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomListView.OnDrawItem Event

In This Article

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

#Declaration

Delphi
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