I have a DataRow object in my code and I need to be able to get the corresponding object from the ItemsSource (DataGridCollectionView collection).
The DataRow has come from a DoubleClick event and the cells contain the correct data for the row that was double-clicked, however I can’t find how to get the underlying data object from the ItemsSource.
I’ve looked for index, item, current item, selected item, parent item, etc properties but can’t find any on the DataRow object. Is there any way to get to the underlying object from the DataGridCollectionView collection?
Thanks in advance for any help.
Imported from legacy forums. Posted by Terry (had 2641 views)