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
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.
Thank you
I have tried to hide flicking by suppressing update, but it is not working. Scroll seems to be somehow exempt from the BeginUpdate / EndUpdate trick.
I will submit incident. However, the problem can be easily recreated with your own sample (WinGrid Sample Explorer V5.2 Fixed Row Feature).
Cheers, Igor
I had a similar problem where the second row could not be scrolled into view by the user when the first row was fixed. Setting the grid's ScrollBounds to ScrollToLastItem resolved the issue.
Marc