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.

Set scroll position in virtual mode

Thread ID:





98399 Feb 24,2011 04:10 PM Mar 1,2011 10:17 AM Silverlight 1
Tags: GridControl
Lisa Smith
Asked On February 24, 2011 04:10 PM

Is it possible to set an initial scroll position on a gridcontrol in virtual model?

Rajasekar [Syncfusion]
Replied On March 1, 2011 10:17 AM

Hi Lisa,

Thanks for using Syncfusion products.

You can achieve your requirement by invoking the ScrollInView(RowColumnIndex) method in the loaded event of the grid as follows,

Code Snippet[C#]

grid.Loaded += new RoutedEventHandler(grid_Loaded);

void grid_Loaded(object sender, RoutedEventArgs e)
//In the RowColumnIndex you set respective Row and Column Index based on that Scroll will be placed.
grid.ScrollInView(new RowColumnIndex(3000, 3));

We have also prepared the sample for your reference, please find the sample in the following location,

Sample: < http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=VirtualGridDemo446739720.zip >

Please let us know if you have any queries.



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.