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

Get SelectedIndex property

1 Answer 76 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Maulik Patel
Top achievements
Rank 1
Maulik Patel asked on 03 Sep 2010, 08:08 AM
Hi,

I need to use the SelectedIndex property of RadGridView. How can I read it?

Regards,
Maulik

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 03 Sep 2010, 08:56 AM
Hello,

You can use SelectedItem property. If you want to get the index you can simply call:

var index = RadGridView1.Items.IndexOf(RadGridView1.SelectedItem);

Sincerely yours,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Maulik Patel
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or