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

SelectedIndex

2 Answers 163 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Support ATT
Top achievements
Rank 1
Support ATT asked on 23 Jun 2008, 07:28 AM
Hi

Since i update to the newest Component, i can't use this method:
RadGrid1.SelectedIndex !!!

What is the newer Property for RadGrid SelectedIndex ??

best regards

2 Answers, 1 is accepted

Sort by
0
Support ATT
Top achievements
Rank 1
answered on 23 Jun 2008, 07:56 AM
I will set the SelectedIndex to a specific Row
e.g. RadGrid1.SelectedIndex = 3;
0
Sebastian
Telerik team
answered on 23 Jun 2008, 08:36 AM
Hello Toprak,

I do not think that RadGrid had SelectedIndex property in its previous versions. If you are referring to the SelectedIndexes collection of the control, here is an example of its usage:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Hierarchy/ThreeLevel/DefaultCS.aspx (see the C#/VB.NET sections of the demo)

For your case I suppose that you can use something like the following:

RadGrid1.SelectedIndexes.Add(2);

Regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Support ATT
Top achievements
Rank 1
Answers by
Support ATT
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or