struct Data
{
int i;
int j;
};
...
ListView1->Items->Item[0]->Data = new Data;
Data *ptr = (Data*)ListView1->Items->Item[0]->Data;
ShowMessage(ptr->i);
Specifies any application-specific data associated with the list item.
__property void * Data = {read=FData, write=SetData};
Description
Use Data to associate arbitrary data structure with the list item. When the user selects or deletes the list item, Data allows the application to quickly access information about the meaning of the list item to implement the appropriate response.