Skip to main content

TcxListBox.OnDataObject Event

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

Declaration

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