This is a migrated thread and some comments may be shown as answers.

After aggregate funtion,How can I get the function result?

0 Answers 34 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
PEIYANG
Top achievements
Rank 1
PEIYANG asked on 11 Oct 2012, 09:24 AM
My code is:
          var avg= new AggregateFunction<student, decimal>
                {
                    AggregationExpression = myItem => Math.Round(myItem.Where(i => i.age!= 0).Average(c => c.age), 3)
                };
                ((GridViewDataColumn)this.RgvVerify.Columns[1]).AggregateFunctions.Add(avg);
What is the result,How can I get the function result??
Tags
GridView
Asked by
PEIYANG
Top achievements
Rank 1
Share this question
or