Get Max or Min Value in DataTable Column

The following code calculates the Max value in a DataTable column. Min can be calculated by replacing Max with Min in the code below.
DataTable Name.Compute("max([Column Name])", String.Empty)

No comments:

Post a Comment