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
280
Fixed Row scrolling problem
posted

I am working with programmatically fixed rows. The rows fixed at the top. Grid is sorted. Upon unfixing I am refreshing sort position with row.RefreshSortPosition().

I am experiencing small problem with the row position once it is un-fixed. The row becomes scrolled behind the header (the row is first in the grid as fixed as well as unfixed due to the sort order). This is happening even if there is plenty of space in the grid and scrolling is not required at all.

The only solution I have found is to force scroll one line up by calling Scroll(RowScrollAction.LineUp) or ScrollRowIntoView.  However this operation is performed with the side effect of grid being unpleasantly flicked.

The problem can be reproduces (the part of the excessive row scroll) with manual row fixing as well on the WinGrid Sample Explorer V5.2 Fixed Row Feature.

I wonder are there ways to prevent scrolling or to restore row visibility without the grid flicking.

The WinGrid verison is NetAdvantage for .NET 2008 Vol. 2 CLR 2.0

Cheers, Igor