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
close icon

Set scroll position in virtual mode

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


1 Reply

RA Rajasekar Syncfusion Team March 1, 2011 03:17 PM UTC

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.

Thanks,
Rajasekar




Loader.
Live Chat Icon For mobile
Up arrow icon