TAdvStringGrid detect merge columns


I am using an AdvStringGrid with grouping function and merged headers.

When, by program, I iterate the rows, how can I detect a merged header ?
(In that case, I will not read column data).
Reading the merged headers row, for any column, the data returned is the merged data.


the function grid.IsMergedCell() returns whether a cell is merged or not.