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

[Solved] Select Next Row in RadGrid from a button click

1 Answer 342 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 13 Apr 2013, 02:34 AM
Good Evening, I have a RadGrid has multiple rows and I would like to Add a button and on the button click event I would like the radgrid to move to the next row in the grid and have it selected. Does someone have an example of that? Thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Apr 2013, 05:31 AM
HI,

Try the following.
C#:
protected void Button4_Click(object sender, EventArgs e)
 {
        foreach (GridDataItem item in RadGrid2.SelectedItems)
        {
            RadGrid2.MasterTableView.Items[item.ItemIndex + 1].Selected = true;
   }
}
Thanks,
Shinu
Tags
Grid
Asked by
Brandon
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or