Hai
am using the wpf rad grid view.
when i select the row in the grid view, i need to display selected row values(each cell value in the selected row) in some other view..
how to do this. can u provide some example to how get the values from selected row?
am using the below one to get the selected row value. but i cant get the values.. how to get???
am using the wpf rad grid view.
when i select the row in the grid view, i need to display selected row values(each cell value in the selected row) in some other view..
how to do this. can u provide some example to how get the values from selected row?
am using the below one to get the selected row value. but i cant get the values.. how to get???
rGridView.SelectedItem = rGridView.Items[rGridView.Items.Count - 1];
5 Answers, 1 is accepted
0
![](/forums/images/avatarimages/default.gif)
dCODE
Top achievements
Rank 1
answered on 15 Mar 2010, 08:52 AM
Can anyone tell me how to get the value from this..
0
Hello,
You can cast SelectedItem (or any other item) to your object type and get desired property directly.
All the best,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
You can cast SelectedItem (or any other item) to your object type and get desired property directly.
All the best,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
![](/forums/images/avatarimages/default.gif)
dCODE
Top achievements
Rank 1
answered on 15 Mar 2010, 09:22 AM
Thanks for your reply,
i can able to get hte selected row values as object by below code
i can able to get hte selected row values as object by below code
GridView.SelectedItem = RGridView.Items[GridView.Items.Count - 1];
but i cant cast items seperately from these selectedItem property,
can u plz tell me how to extract or cast values from this selected Item object,
0
![](/forums/images/avatarimages/default.gif)
dCODE
Top achievements
Rank 1
answered on 15 Mar 2010, 10:35 AM
Am getting Exception when am trying to cast the object like this;
object mydata = GridView.SelectedItem;
ArrayList myArrayList = (ArrayList)mydata ;
0
![](/forums/images/avatarimages/default.gif)
dCODE
Top achievements
Rank 1
answered on 16 Mar 2010, 02:38 AM
How to cast my values from gridview.SelectedItem object????