We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridGroupingControl (TopRowIndex) - empty top row appearing when scrolling

Hello -

I have created a GridGroupingControl with hidden scroll bars and no header information at all. The vertical scrolling is done automatically. The problem is, when I have only a few rows visible ("down scrolling" is not needed - all the rows are visible) when I try and scroll the grid down, an empty row appears at the top.

All that my "scroll down" code does is try to increment the 'TopRowIndex' variable (which starts and stays at 3, the value does not change.)

Please see the attached sample - all you have to do is run it and immediately click the "DOWN" button.

Thanks for your help,
Dave B.

GGC_ScrollProblem.zip

1 Reply

HA haneefm Syncfusion Team June 11, 2007 07:32 PM UTC

Hi David,

You can use the SetCurrentVScrollPixelPos method to adjust the ToprowIndex(scrollbar) to required position. Here is a code snippet to show this.

//Down button's click event.
int i = grpgrpPR.TableControl.GetCurrentVScrollPixelPos();
grpgrpPR.TableControl.SetCurrentVScrollPixelPos(i + 30); 30 is a RowHeight.

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon