I have had similar issue long time ago. What I did is that I created two ListViews, one showing only the header on top of the other that has hidden header (see the attached pic).
In the Columns Editor I set the Minwidth, Maxwidth, and the Width of the columns of the Header ListView to be equivalent to the width of the second ListView columns to prevent the header columns of being re-sized so not to lose the columns' structure.
But if re-sizing the columns is necessary all you have to do is capturing the column resizing event at the Header ListView then re-size the other one to keep the respective columns in the same width.
btw. I see now that I forgot to include the required uses clause... I think the example I provided requires CommCtrl, ComCtrls apart from the usual standard units. (can't try it right now)
Peter Kiers
ASKER
I am trying HYPO's solution now, and i get a few errors:
In the Columns Editor I set the Minwidth, Maxwidth, and the Width of the columns of the Header ListView to be equivalent to the width of the second ListView columns to prevent the header columns of being re-sized so not to lose the columns' structure.
But if re-sizing the columns is necessary all you have to do is capturing the column resizing event at the Header ListView then re-size the other one to keep the respective columns in the same width.
To capture a column re-size event:
http://www.swissdelphicenter.ch/torry/showcode.php?id=1264
JG