What's the relationship between col and column in TStringGrid?
Say I have a grid with eight columns, some visible and some not. For instance, suppose columns 2,3 and 4 are not visible, then I'm assuming that the relationship between column and col indices is as follows:
| Column | Col |
| 0 | 0 |
| 1 | 1 |
| 2 | - |
| 3 | - |
| 4 | - |
| 5 | 1 |
| 6 | 2 |
| 7 | 3 |
For static grids, where the columns are known at design time, the mapping can be done in code, but for dynamic grids that build their columns at run-time, there's a need to figure out the mapping between columns and cols.
When handling an event such as Drawcell, the parameter is a col index. Is there a method to tell me the equivalent column index, or must I code for this?
Thanks.