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.OwnerDraw Property

Specifies whether a list view receives the OnDrawItem event.

#Declaration

Delphi
property OwnerDraw: Boolean read; write; default False;

#Property Value

Type Default
Boolean False

#Remarks

Use the OwnerDraw property to enable the cxListView control to receive the OnDrawItem event. Handle this event if the custom painting of the list view items is required.

The difference between the OnDrawItem and the custom draw events (OnCustomDraw, OnCustomDrawItem, OnCustomDrawSubItem, OnAdvancedCustomDraw, OnAdvancedCustomDrawItem, OnAdvancedCustomDrawSubItem) is that the latter occur at more steps during the control painting and there is a slight difference in information provided on the drawn item state.

The default value of the OwnerDraw property is False.

See Also