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

Specifies the number of items within the list box control.

#Declaration

Delphi
property Count;

#Property Value

Type
Integer

#Remarks

Commonly you will need the Count property to determine the number of items within the list box. Assigning values to this property makes sense only when the list box is virtual.

Setting the ListStyle property to lbVirtual or lbVirtualOwnerDraw makes the list box virtual. This means that you intend to supply data to the list box by handling the OnData event. The event fires the number of times specified by the Count property value. Each time it fires, you can provide data for a single list box item.

Note

when the list box control is virtual, you will also need to handle the OnDataFind and OnDataObject events.

See Also