SubItems

This property returns and sets an array of strings, or a subitem, that represents the data of a ListItem object in a ListView control.

Syntax

object.SubItems(index) [= string]

Parameters

object
Object expression that evaluates to a ListItem object.
index
Integer that identifies a subitem for the specified ListItem object.
string
Text that describes the subitem.

Remarks

Subitems are arrays of strings that represent data displayed in the Report view of a ListItem object. For example, you can show the file size and the date last modified for a file.

A ListItem object can have any number of associated item data strings (subitems) but each ListItem object must have the same number of subitems.

There are corresponding column headers defined for each subitem.

You cannot add elements directly to the subitems array. Use the Add method of the ColumnHeaders collection to add subitems.