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.

regarding scroll position of grid

Thread ID:

Created:

Updated:

Platform:

Replies:

60503 May 7,2007 08:27 AM May 7,2007 01:22 PM Windows Forms 1
loading
Tags: GridControl
swaminath dhavane
Asked On May 7, 2007 08:27 AM

hi,
i am showing records in grid and i have to set particular record as selected one.i am doing that but scroll position of scroll bar remains at top not at the record i have selected.

haneefm [Syncfusion]
Replied On May 7, 2007 01:22 PM

Hi Swaminath,

If you want to scroll the record into view then use the ScrollCellInView method. Here is a code snippet.

//Getting a rowindex given the record index
int position = gridGroupingControl1.Table.DisplayElements.IndexOf(record);
this.gridGroupingControl1.TableControl.ScrollCellInView(GridRangInfo.Row(position));

Also refer the below forum thread for more details.

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.

;