I have two DataGridViews, one on top of the other, in my form with synchronized scrollbars like in this answer. However, the synchronization is only one way as I have hidden the scrollbar of the grid on top, only showing one scrollbar for both grids. The synchronizing works fine while scrolling the scrollbar, but HorizontalScrollingOffset of the top grid (the one with the hidden scrollbar that is scrolled programmatically) is reset to 0 when the grid is resized.
I think it's because the scrollbar is hidden for the top grid, so the scrollbar isn't able to hold a scrolling value, but haven't been able to find a solution/workaround yet.
Does anyone know how to prevent the DataGridView with the hidden scrollbar from resetting when the DataGridView is resized?