我想应该这样吧.
e.DataRow(e.DataCol.Name) = DataTables("明细表").Compute("sum(车数)", "[日期] = '" & e.Datarow("日期") & "' and [车间] = '一车间'")