Returns or sets an array of strings (a subitem) representing the ListItem object's data in a ListView control.
Syntax
object.SubItems(index) [= string]
The SubItems property syntax has these parts:
Part | Description |
object | An object expression that evaluates to a ListItem object. |
index | An integer that identifies a subitem for the specified ListItem. |
string | Text that describes the subitem. |
Remarks
Subitems are arrays of strings representing the ListItem object's data that are displayed in Report view. For example, you could 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.