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 

 

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Igor,

    If there is enough room in the grid for all rows to display and the grid is still showing a scrollbar with some rows scrolled out of viewm, then it's a bug. You should try to duplicate this behavior in a small sample project and Submit an incident to Infragistics Developer Support so they can get it corrected. 

    In the mean time, you should be able to avoid the flicker by using the BeginUpdate / EndUpdate methods to wrap your code that is unfixing the row and adjusting the scrolling. 

Reply Children