To get the CustomObject
in the same manner that you do with the WPF ListBox you will have to cast either SelectedRecord or CurrentRecord
, depending on your needs, to a DaraRecord Object. The Data
property of the DaraRecord Object will return exactly what you are looking for. Following is a short example of how this can be done.
|MyCustomObject obj = ((DataRecord)this.radGridView.SelectedRecord).Data as MyCustomObject;
I hope this works for you.
All the best,
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.