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

[Solved] SelectedItem?

2 Answers 204 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.
Chris
Top achievements
Rank 1
Chris asked on 21 Nov 2008, 09:49 PM
I'm binding a GridView to a List of business objects.  I'm trying to see which item is selected in the GridView (MultiSelect is false) and SelectedItem is always null.  There is a CurrentRecord property that has a DataRecord, which has a Data property that is filled that contains my selected business object, but that seems like a pretty convuluted way to get the selected item.

Is there an easier way to get this?  What is SelectedItem for?  How do I select nothing and/or select based on an item in my list?

Also, is there any documentation available yet?

Thanks,
-chris

2 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 25 Nov 2008, 04:00 PM
Hello Chris,

Thanks for the feedback, I've updated your Telerik points.

This bug will be fixed for the official version of the RadGridView for Silverlight. As a workaround you can subscribe for the SelectionChanged event of the RadGridView control and from SelectionChangeEventArgs.AddedRecords collection you can get last SelectedRecord.


Sincerely yours,
Nedyalko Nikolov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
reema
Top achievements
Rank 1
answered on 10 Feb 2009, 11:23 AM

hi,

but how to do that still i'm getting errors ...
sample code plz


thanx in advance..
Tags
GridView
Asked by
Chris
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
reema
Top achievements
Rank 1
Share this question
or