Dim it As Winform.StripItem = Forms("窗口").Strips("状态栏").Items("Total")
Dim t As Table = e.Table
it.Text = ""
If t.Cols(t.ColSel).IsNumeric Then '如果当前列是数值列
dim sum as double
for i as integer = t.TopRow to t.BottomRow
if t.rows(i).visible then
sum += t.rows(i)(t.ColSel)
end if
it.Text = "合计: " & sum
End If