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:)
Ex :
int maxvalue = datatable.AsEnumerable().Max(r => r.Field<string>("Columname"));
Happy Coding:)
No comments:
Post a Comment