The SubItems collection contains an optional array of additional items associated with each ListItem in the ListView control.
Newlook Smartclient only.
SubItems are used to display additional columns of data for each item in the ListView control.
You can add and remove SubItem objects to or from the collection using the ListItems editor of the ListView Control at design time.
The SubItems collection uses the Count property to return the number of items in the collection array.
The SubItems collection is a child array of an individual Item in the list view control. Therefore if you wish to reference an individual SubItem, you must first reference its parent Item. All indexes in Newlook are zero-based, therefore if you wanted to return the text of the first sub-item for the first item in the list view control you would use the following syntax:
<listviewcontrol>.ListItems(0).SubItems(0).Text
Newlook Smartclient |
Newlook Server |
Deprecated
|
Obsolete
Property |
Client |
Description |
|
Returns the number of objects in a collection. |
ListItems collection | ListItem object | SubItem object