Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
ClearTotal
清除汇总行。
示例
例如希望单击某个按钮,可以清除所有汇总行,可以将按钮的Click事件代码设为:
Dim
dst As WinForm.DataList = e.Form.Controls("DataList1")
一.用ClearTotal清除汇总行
Dim dst As WinForm.DataList = e.Form.Controls("DataList1")
dst.ClearTotal()
dst.RowFilter = "[第一列] = 'A'"
dst.GrandTotal(AggregateEnum.sum,"总计", "第二列")
二.用build清除汇总行
Dim dst As WinForm.DataList = e.Form.Controls("DataList1")
dst.build
dst.RowFilter = "[第一列] = 'A'"
dst.GrandTotal(AggregateEnum.sum,"总计", "第二列")