I am using this code to try to sort the data in the columns of my Listview object:-
void __fastcall TForm2::ListView1ColumnClick(TObject *Sender, TListColumn *Column)
{
ColumnToSort = Column->Index;
((TCustomListView *)Sender)->AlphaSort();
}
ColumnToSort is global and the viewstyle property is 'vsReport'. NOTHING happens when I click, right or left with the mouse !!
What am I doing wrong and what is the role of 'TListColumn *Column' in the function declaration ?
void __fastcall TForm2::ListView1ColumnClick(TObject *Sender, TListColumn *Column)
{
ColumnToSort = Column->Index;
((TCustomListView *)Sender)->AlphaSort();
}
ColumnToSort is global and the viewstyle property is 'vsReport'. NOTHING happens when I click, right or left with the mouse !!
What am I doing wrong and what is the role of 'TListColumn *Column' in the function declaration ?