This is a migrated thread and some comments may be shown as answers.
Current row index
1 Answer 239 Views
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 29 Oct 2007, 08:03 AM
Hi Telerik,

What should i use to get current row index? So if i click on the first row it should return 0

THanks

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 29 Oct 2007, 11:53 AM
Hello Erik,

Thank you for the question.

There are many ways to get the current row index. For example you can use the following line:

int index = this.radGridView1.Rows.IndexOf( this.radGridView1.CurrentRow );

If you have a hierarchical grid you can use:

int index = this.radGridView1.MasterGridViewInfo.GetVisualIndex(this.radGridView1.CurrentRow );

Contact us again if you have additional questions.

Sincerely yours,
Peter
the Telerik team

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