I'm encountering an issue with column indexes.
I'll try to explain what I'm doing, but if some remains unclear, just ask.
I create and fill a TTMSFMXGrid runtime.
So I create columns with TMSFMXGrid1.Columns.Add.
Each created column I give (using Tag / ID) some information.
I create an EventHandler for the CellLayout using:
procedure TMSFMXGrid1GetCellLayout(Sender: TObject; ACol, ARow: Integer; ALayout: TTMSFMXGridCellLayout; ACellState: TCellState);
Based on the extra information I added to the columns I now can change the layout.
Works just fine.
But when I have "hidden" columns, the ACol parameter seems to be the index in the Visible (not hidden) columns instead of the "real" column index.
Is there a way to simple determine the "real" column index from the given "visible" column index ?
Or am I just missing something ?