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 8 Views
GridView
This is a migrated thread and some comments may be shown as answers.
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??

No answers yet. Maybe you can help?

Tags
GridView
Asked by
PEIYANG
Top achievements
Rank 1
Share this question
or