How does one get row data from a DataGrid?
I have gotten this far:
DataGridRow item = (DataGridRow)dg.SelectedItem;
Now how do I get the individual components of the item that I guess is the selected row?
3 Answers, 1 is accepted
0
Vlad
Telerik team
answered on 27 May 2011, 03:38 PM
Hello,
You can cast SelectedItem to your data item type and access any property. For example:
var customer = (Customer)dg.SelectedItem;
Greetings,
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