I’ve been producing videos on using delphi components for my website LearnDelphi.tv. I’m looking to cover THeaderControl but can’t find any use for it – is this component now not required – surpassed by other components such as TListView (with the report viewstyle) or is there some way of using it that I’ve overlooked?
Edit:
I recorded a segment on THeaderControl for one of my commercial videos, but I have decided to release this small section (20 minutes out of 6 hours) for free. Watch it on YouTube. Thanks to everyone who has contributed.
In general:
THeaderControlcan be used as header for tabular data. Of course, often a list view is used for that. But for an exotic layout of different components in each column that would not be easy to create by using a list view or similar, or for even complete different layouts for each column, the header control could be usefull. It simply offers more flexibility there where it is needed. Compare it withTPageControloffering more flexibility thanTTabControl.And about a specific niche case: for example, I use the header control as part of a planning grid component. The header control gets his captions via a data source, and the header sections are in sync with the columns and the scroll bar. Indeed, this requires some code, but not more than when implementing the different events designtime: