I want to auto-size all the columns in the TListView. I am using below code, but its not doing any thing.
ListView1.Columns.Add.Caption := 'Field Name';
ListView1.Columns.Items[0].Autosize := True;
How can i auto-size the columns of TListView in Delphi.
I set my ViewStyle to vsReport
.
Thanks in advance
ColumnHeaderWidth = LVSCW_AUTOSIZE_USEHEADER;
orColumnTextWidth = LVSCW_AUTOSIZE;
. – Parous