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

[Solved] Select last row?

1 Answer 150 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Megan
Top achievements
Rank 1
Megan asked on 02 Apr 2009, 11:06 AM
I know this logic can be used to select the first row :

RadGrid1.MasterTableView.Items(0).Selected = True  

 But is there anything like this I can use to select the last one?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Apr 2009, 04:12 AM
Hello Megan,

You can try out the following code to select the last row:
vb:
 Dim index As Integer = RadGrid1.Items.Count - 1 
 RadGrid1.MasterTableView.Items(index).Selected = True 

Thanks
Princy.
Tags
Grid
Asked by
Megan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or