WinForm------GridControl添加底部合计框

1.在GridView属性中找到“OptionsView” =》 “ShowFooter” = true

2.打开编辑器,如图

.

 

 

3.获取统计数据(注意:"Worth"为列名)

var str =Convert.ToString(gridView1.Columns["Worth"].SummaryItem.SummaryValue) ;

 

posted @ 2016-11-21 15:31  玉天恒  阅读(1858)  评论(0编辑  收藏  举报