Get Max From Data Table
decimal srno = 0;List<decimal> srnoList = DtlCollSecuOther.AsEnumerable().Select(t => t.Field<decimal>("srno")).Distinct().ToList();
srno = srnoList.Max();
decimal srno = 0;List<decimal> srnoList = DtlCollSecuOther.AsEnumerable().Select(t => t.Field<decimal>("srno")).Distinct().ToList();
srno = srnoList.Max();
No comments:
Post a Comment