Hi,
I have a grid that has a number of fixed columns (column.Header.Fixed = true) on the left hand side and a number of non-fixed columns on the right hand side. The right hand side columns are date columns. The goal is to have the column representing today to always display as the first column to the right of the fixed columns. I have been trying to use Grid.ActiveColScrollRegion.ScrollColIntoView to accomplish this by passing the method the column representing today. However, the end result is not coming back correct. The column that scrolls into view is not the column representing today. Sometimes the today column is behind the fixed column area and sometimes it's too far to the right of the fixed column area. Any ideas as to why this is happening? I have tried using LeftAlign = true but that only makes things worse. Are the fixed columns causing an issue here or ??? Are there any alternate ways of getting this to work?
I've attached a .jpg to show an example what is happening ...
Thank you,
Steve
Hi Mike ... I actually was able to get this working. In our app we have 3 grids that scroll together and stay in sync and as soon as I switched the ScrollColIntoView to the main grid and used Left Align it started working. So all is good ... Thank you ...
Hi Mike ... I have set the second parameter (Left Align) to be true and it did not help my particular issue. It actually made things a bit worse where the difference between the column displayed to the right of the fixed area was farther away from today than when the parameter is set to false. ... Not sure why it's not working for me ...
Hi Steve,
I tried this out and it seems to work just fine for me. Are you passing in true for the second param of ScrollColIntoView?