Requirement : Would like to get a particular record from a wpf xamdatagrid based on a index , and use that record as a starting point to loop through the xamdatagrid until certain count is reached.
So My question would be how to get a record from a xamdatagrid based on a index?
Hello Sowmya,
The simplest way to get a particular record from a particular index in the XamDataGrid would be to index into the XamDataGrid.Records collection. For example, if you wanted to get the record at index 20, you could call:
Record record = myXamDataGrid.Records[20];
Please let me know if you have any other questions or concerns on this matter.
This works but not in my case, as the record object of type Record has no property which i can see in the intellisense to access a cell value or any dataitem property, indeed DataRecord class has that. Can you suggest if there is any way to access a cell value based on the column name using the Record object itself ?
Through explicit casting from Record to DataRecord, was able to retrieve the cell values.