Skip to main content

TdxBarListItem.DataIndex Property

Selects a list item at runtime.

Declaration

property DataIndex: Integer read; write;

Property Value

Type
Integer

Remarks

The property value corresponds to the item number in the list. 0 corresponds to the first list item. If no item is selected, the value is -1. The DataIndex property works similar to the ItemIndex property but if item text is equal to dash “-“, it is not considered when calculating the DataIndex.

See Also