Showing posts with label Max. Show all posts
Showing posts with label Max. Show all posts

Tuesday, 31 March 2015

How to get Maximum Value using Linq based on Column?

In this post, Get the maximum value using LINQ based on Column in C#.

Ex :
int maxvalue = datatable.AsEnumerable().Max(r => r.Field<string>("Columname"));

Happy Coding:)