2

I'm trying to retrieve the DataRecord associated with a given data item bound to my XamDataGrid. Is there any way to find the DataRecord other than enumerating through all the DataRecords in the collection and comparing the DataRecord.DataItem to the dataItem in question?

cordialgerm
  • 8,403
  • 5
  • 31
  • 47

1 Answers1

3

There is a GetDataRecordFromDataItem method exposed by the DataRecordCollection and this could be used to get a DataRecord from the DataItem

http://help.infragistics.com/NetAdvantage/WPF/2011.2/CLR4.0/?page=InfragisticsWPF4.DataPresenter.v11.2~Infragistics.Windows.DataPresenter.DataRecordCollection~GetDataRecordFromDataItem.html

alhalama
  • 3,218
  • 1
  • 15
  • 21