This question is locked. New answers and comments are not allowed.
When I am exporting the grid to Excel, the "Value" in this footer cell colum is null. What am I doing wrong?
GridViewDataColumn pyVarColPercentage = gridAdmissions.Columns ["PYVARPercentage"] as GridViewDataColumn; decimal priorYearCurrentAdmits = vm.FilteredAdmissions.Sum(a => a.PriorCurrentYearAdmit.ADMITS); if (priorYearCurrentAdmits != 0) { pyVarColPercentage.Footer = String.Format("{0:P2}", (currentYearAdmits - priorYearCurrentAdmits) / priorYearCurrentAdmits); } else { pyVarColPercentage.Footer = String.Format("{0:P2}", 0); }