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

[Solved] Row Indicator Handling

1 Answer 140 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jani
Top achievements
Rank 1
Jani asked on 27 Oct 2009, 03:14 PM
How can I

- find the grid row marked by the row indicator?
- notified when the row indicator was changed/moved (while clicking on the indicator cell)?

Cheers
Jani

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 31 Oct 2009, 10:02 AM
Hi Jani,

The row indicator icon indicates which row is the current one and you could easily get the current item by using myGridView.CurrentItem. This property returns the current data item. If you would like to get the visual element that represents this current data item you could use the following command:

var currentRow = this.radGridView.ItemsControl.ItemsGenerator.ContainerFromItem(this.radGridView.CurrentItem);

Most of the time the selected item and the current one are one and the same item so the SelectionChanged event can be used as an indicator of current item change.

Regards,

Milan
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
Jani
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or