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

regarding scroll position of grid

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.

1 Reply

HA haneefm Syncfusion Team May 7, 2007 05:22 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon