The Displayindex has an unexpected value
Sample:
The DbAdvGrid has 5 fields. field1, field2, field3, field4, field5
In the OnCreate oft he form the field3 ist set to hidden: HideColumn(DbAdvGrid.ColumnByFieldName[field3].Index)
In the DbAdvGrid GridHint event I wan‘t to show a hint for the field5.
I check aCol against DbAdvGrid.ColumnByFieldName[field5].Index but this do not work.
When i move the cursor to then column of field5 aCol is 3, that‘s ok because the field3 is hidden.
But every index of DbAdvGrid.ColumnByFieldName[field5] is 4.
DbAdvGrid.ColumnByFieldName[field5].Index
DbAdvGrid.ColumnByFieldName[field5].Displayindex
DbAdvGrid.ColumnByFieldName[field5].Defidx
I would expect that DbAdvGrid.ColumnByFieldName[field5].Displayindex is 3.
What’s wrong? What do i have to do if i want to compare ColumnByFieldName with aCol if columns are hidden?