Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
775
Issue with ScrollColIntoView
posted

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