F_Lieske1
(F. Lieske)
1
Hello,
I am confused about the HideColum function in advstringgrid:
For example, I have an advstringgrid with 5 columns (Column0 is fixed)
If I write advstringgrid.HideColumn(3)
Does this affect the numbering of the other following columns 4 and 5 ?
Thanks
Yes it does.
You can convert visual column indexes with real column indexes and vice versa with the functions grid.RealColIndex / grid.DisplColIndex
It is also explained on page 142 of the developer guide:
http://www.tmssoftware.biz/download/manuals/tms%20tadvstringgrid%20developers%20guide.pdf
Or you can use grid.SuppressColumn() if you want to avoid this column index conversion.
With grid.SuppressColumn(), column indexes stay unchanged.