The question is similar to existing one for .NET and C# but I think in Borland C++ should be another way to do this.
In the edit time I can easily set image for subitem in listview as well as for item (in Object Inspector's special Items editor). But in runtime I cannot do this because I have no reference on subitem.
ListView2->ViewStyle = vsReport;
ListView2->SmallImages = ImageList1;
TListColumn* column;
column = ListView2->Columns->Add();
column->Caption = "col1";
column = ListView2->Columns->Add();
column->Caption = "col2";
TListItem* item = ListView2->Items->Add();
item->Caption = "Item";
item->ImageIndex = 2;
item->SubItems->Add("Subitem");
Is there any way to get reference to the new Subitem?