double dValueSum = 0.0;
dValueSum = Convert.ToDouble(dtFormatedCmbFinal.AsEnumerable()
.Where(y => y.Field<string>("Date") == strDateforNullValue && y.Field<decimal>("Value") > 0)
.Sum(x => x.Field<decimal>("Value"))
.ToString());
dValueSum = Convert.ToDouble(dtFormatedCmbFinal.AsEnumerable()
.Where(y => y.Field<string>("Date") == strDateforNullValue && y.Field<decimal>("Value") > 0)
.Sum(x => x.Field<decimal>("Value"))
.ToString());
No comments:
Post a Comment