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.
Unfortunately, activation email could not send to your email. Please try again.

GridGroupingControl (TopRowIndex) - empty top row appearing when scrolling

Thread ID:

Created:

Updated:

Platform:

Replies:

62198 Jun 9,2007 12:19 PM Jun 11,2007 03:32 PM Windows Forms 1
loading
Tags: GridControl
Dave Busch
Asked On June 9, 2007 12:19 PM

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

haneefm [Syncfusion]
Replied On June 11, 2007 03:32 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;