Reputation: 2541
How we find Maximum and minimum value from DataSet
Upvotes: 0
Views: 3325
Reputation: 1893
Try to use linq to object like this
dt.Rows.Cast<DataRow>().Max(row => row[ColumnName]);
dt.Rows.Cast<DataRow>().Min(row => row[ColumnName]);
Upvotes: 3