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

TcxListBox.OnDataObject Event

In This Article

Fires when the list box object needs to obtain the object associated with an item.

#Declaration

Delphi
property OnDataObject: TLBGetDataObjectEvent read; write;

#Remarks

The OnDataObject event is similar to the OnData event. The only difference is that the OnData event supplies captions for items, while the OnDataObject event supplies associated objects. In other words these events are needed to fill the Strings and Objects collections of the items list represented by the Items property.

Control specifies the TcxInnerListBox.

Index identifies the currently processed item by its zero-based index. The object associated with the item must be assigned to the DataObject parameter.

Note

as well as the OnData event, this event only fires when the control is in virtual mode. The ListStyle property must be set to lbVirtual or lbVirtualOwnerDraw value for this purpose.

See Also