Compute Median of values in a DataTable Column

How can i compute Median of values in a column of a DataTable. For instance if i want to compute Median value of Score column in Student DataTable.

Is there any function available in .NET Framework?

Thanks

[218 byte] By [JobLot] at [2007-12-16]
# 1
If your table is sorted by that column, it's very easy: get the number of rows, divide by 2, and get the value at that position.
DanielRieck at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2
what if the result of division is not an inetger, but in decimals?
JobLot at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3
Round to the nearest two integers, get two values and compute their mean: http://en.wikipedia.org/wiki/Median
DanielRieck at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...