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

Current Index , Change without click

1 Answer 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hayden Trott
Top achievements
Rank 1
Hayden Trott asked on 18 Jan 2010, 03:04 PM
Hi,

Is it possbile to change the selected index on the datagrid view, I've tried to modify RadAlertsPanel.CurrentRow.ViewInfo.CurrentIndex But had no luck....

I'm new to this so any help would be appreciated.

Thanks Hayden

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 19 Jan 2010, 10:24 AM
Hi Hayden Trott,

You can't set CurrentIndex property directly. In fact this property is used internally in RadGridView and its behavior might change across versions. I suggest using CurrentRow property or RadGridView. You can also set IsCurrent property of the row. Consider the sample below:

this.radGridView1.CurrentRow = this.radGridView1.Rows[10];
this.radGridView1.Rows[15].IsCurrent = true;

If you have further questions, I will be glad to help.

Best wishes,

Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Hayden Trott
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or