Hi Christian,
To know if you need to move your image in the AfterRowColChange(), you can use code like this:
WITH This
IF NOT .ColumnOffSet = .ActiveColumn - .RelativeColumn
.ColumnOffSet = .ActiveColumn - .RelativeColumn
.SlideImage(.ColumnOffSet)
ENDIF
where ColumnOffSet is a custom property in the Grid class.
>Hello,
>
>I have a grid, and I position an image at a certain position on one of the headers to indicate the active sorting of the grid.
>This works fine, and I calculate the position using the column order and counting all column widths until this column together and add this value to the left position of the grid.
>
>This doesn't work when the grid is scrolled horizontal.
>Is there a way to find the real position of the column even if the grid is scrolled horizontal?
>
>Thanks for your help in advance!
Charlie