在【全局表事件】写代码即可。但全局表事件,需要你在生成统计表之后,开启此表的全局事件的,如
datatables("统计表1").GlobalHandler.CurrentChanged = true