Skip to main content

TcxCustomListView.OwnerDraw Property

Specifies whether a list view receives the OnDrawItem event.

Declaration

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