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.
Syncfusion Feedback

bring scroll position to current record

Thread ID:

Created:

Updated:

Platform:

Replies:

61361 May 24,2007 06:30 AM UTC May 24,2007 03:03 PM UTC Windows Forms 1
loading
Tags: GridControl
swaminath dhavane
Asked On May 24, 2007 06:30 AM UTC

i want to bring scoll bar position to current record in grouping grid control .U had given me follwing idea but still scroll position remains at top.please help me.



You can call

grid.TableControl.ScrollInView(element);

element could be grid.Table.CurrentElement in your case.

haneefm [Syncfusion]
Replied On May 24, 2007 03:03 PM UTC

Hi Swaminath,

You can try setting the GridTableControl.TopRowIndex property to scroll the grid at required position. Below is a code snippet.

int indexX = this.gridGroupingControl1.Table.NestedDisplayElements.IndexOf( currentElement );
this.gridGroupingControl1.TableControl.TopRowIndex = indexX;

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.

Warning Icon 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.Close Icon

;