This is a migrated thread and some comments may be shown as answers.

Set Grid CurrentPosition

1 Answer 42 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Eric Klein
Top achievements
Rank 1
Eric Klein asked on 12 Jul 2012, 06:00 PM
I have a screen with a gridview on it where the user can select a row and it populates information on the screen.  In the edit section I have created a Next and Previous button
private void NextButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {           
            GeneralLedgerGridView.Items.MoveCurrentToNext();
            var selectCommand = RadGridViewCommands.SelectCurrentUnit as RoutedUICommand;
            selectCommand.Execute(null, this.GeneralLedgerGridView);
        }

The problem is is if the user clicks on a row with the mouse then hit the previous or next button the application seems unaware of the current row that was selected by the mouse click.  How do I set the Currentrow info on a mouse click.

1 Answer, 1 is accepted

Sort by
0
Eric Klein
Top achievements
Rank 1
answered on 12 Jul 2012, 08:07 PM
I figured out  the issue I need to set   IsSynchronizedWithCurrentItem="True"  in the RadGridView

Tags
GridView
Asked by
Eric Klein
Top achievements
Rank 1
Answers by
Eric Klein
Top achievements
Rank 1
Share this question
or