WPF Simple Max Record Function in ObservableCollection
$10-30 USD
ที่ทำเสร็จแล้ว
โพสต์ เกือบ 6 ปีที่ผ่านมา
$10-30 USD
ชำระเงินเมื่อส่งงาน
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 = ([login to view URL] as ObservableCollection<[login to view URL]>).Max(m => [login to view URL])
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.