Get SelectedIndex property

2 posts, 1 answers
  1. Maulik Patel
    Maulik Patel avatar
    36 posts
    Member since:
    Mar 2010

    Posted 03 Sep 2010 Link to this post

    Hi,

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

    Regards,
    Maulik
  2. Answer
    Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 03 Sep 2010 Link to this post

    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
  3. DevCraft banner
Back to Top