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

Select a row?

1 Answer 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 01 Dec 2010, 01:18 PM
Hi!

I have a RadGridView bound to an ObservableCollection<MyObjectType>.

In one of my method I receive a "MyObjectType" object, and I've to select it in the RadGridView.

It was working without any problem, but it seems that the SetIsSelected mehtod is now protected and I can't access it anymore.

How do I do now? I receive a MyObjectType and not a RadGridViewItem.

Why this regression?

I'm very disappointed on this change.

1 Answer, 1 is accepted

Sort by
0
Accepted
Yavor Georgiev
Telerik team
answered on 01 Dec 2010, 01:19 PM
Hi Julien,

 You simply need to assign your data item to the SelectedItem property of RadGridView (if you're using single row selection), or add it to the SelectedItems collection of RadGridView (if you're using extended or multiple row selection).

Sincerely yours,
Yavor Georgiev
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
GridView
Asked by
Julien
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Share this question
or