Well @sharks14
You can try @sfranzen way as well but i have also one more way to do this
No need to use for each for this
You can get the highest column value for โCloseโ Column like this
Int maxval = Convert.ToInt32(data.Compute("max([Close])",String.Empty))
one more way is Datatable.select() as @sfranzen mentioned.
there one more is to use IEnumerable.max method as well
String maxval = datatable.AsEnumerable().Max(Function(r) r("Close")).ToString
Feel free to use any one of them.
and if you wants to fetch the date as well from the max close amount row.
try this :
(Datatable.Select(โ[Close]='โ+ienumerable_Datarow.Max(Function(r) r(โCloseโ)).ToString+โ'โ))(0)(0).ToString
This is the first thing came into mind. @andrzej.kniola you can add more things i guess haha
sample_shark.zip (3.0 KB)
Regardsโฆ!!
Aksh