Convert.ToInt32(dt.AsEnumerable().Max(Function(row) row("column1")))
works.
Any idea how can I compute the average?
vAvg = dt.AsEnumerable().Average(Function(row) row("column1"))
gives an error.
Which kind of conversion must I perform to assign a decimal value to vAvg?