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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridControl Scrolling from Button

Thread ID:





101514 Oct 31,2011 09:30 AM UTC Nov 11,2011 04:17 AM UTC WPF 1
Tags: GridControl
Christopher Baker
Asked On October 31, 2011 09:30 AM UTC


Is there a way to control the scroll of the grid left and right with a button using the MVVM pattern? I have button on the view that commands to the view model, how can this issue a scroll left right to the GridControl?


Jawahar Jeevanandan J [Syncfusion]
Replied On November 11, 2011 04:17 AM UTC

Hi Christopher,

Thank you for your patience.

You can achieve your requirement by using the below code snippet,

Code snippet[C#]

private BaseCommand _moveLeft;

public BaseCommand MoveLeft
_moveLeft = new BaseCommand(DoMoveLeft);
return _moveLeft;

private void DoMoveLeft(object param)
GridControl gc = param as GridControl;

RowColumnIndex rc_l = new RowColumnIndex();
rc_l.RowIndex = 1;
rc_l.ColumnIndex = 1;

Code Snippet[XAML]

For your convenience, We have also attached the sample and please find the sample in the below location,

Sample: http://www.syncfusion.com/downloads/Support/DirectTrac/86766/WPFGCScrolling-1635717338.zip

Please follow incident 86766 for further follow up on this query



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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