I have a DataGrid with a list of records. I'm using an ObservableCollection bind the Datagrid. All I need is a function/formula to return the (1)max value of the specified field (col1) ; and (2) a secondary value in the same row (col2) where the max value was founded.
Here is the sample code of how I find a maximum value:
int maxValue = ([url removed, login to view] as ObservableCollection<[url removed, login to view]>).Max(m => [url removed, login to view])
The above code will return only the max value...I need to get the maximum value + a secondary col.
Ex. MAX RPM = 10,000 @ 12s (col2).
any questions, please ask.