本文介绍了如何在GridView telerik中添加页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 您好, 我使用c#在Telerik win表格中工作, 我有网格视图,我想添加页脚按下面的锯数计算单位。 我的代码如下。 GridViewSummaryItem summaryItem = new GridViewSummaryItem(); summaryItem.Name = Units; summaryItem.Aggregate = GridAggregateFunction.Count; GridViewSummaryRowItem summaryRowItem = new GridViewSummaryRowItem(); summaryRowItem.Add(summaryItem); this .GridViewWorkInProgress.SummaryRowsTop.Add(summaryRowItem); this .GridViewWorkInProgress.SummaryRowsBottom.Add(summaryRowItem); 我会抛出NullReference Exception Un错误的错误。 给我解决方案。 谢谢解决方案 Hello,I am work in Telerik win form using c#,I have grid view and i want to add footer which calculate the units as per below sawed.My code as below. GridViewSummaryItem summaryItem = new GridViewSummaryItem(); summaryItem.Name = "Units"; summaryItem.Aggregate = GridAggregateFunction.Count; GridViewSummaryRowItem summaryRowItem = new GridViewSummaryRowItem(); summaryRowItem.Add(summaryItem); this.GridViewWorkInProgress.SummaryRowsTop.Add(summaryRowItem); this.GridViewWorkInProgress.SummaryRowsBottom.Add(summaryRowItem);I t will throws the error of NullReference Exception Unhandled.give me the solution for that.Thanks 解决方案 这篇关于如何在GridView telerik中添加页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
05-28 08:01