Select Case e.DataCol.Name Case "货品代码"
e.DataRow("直营销量") = DataTables("直营销售").Compute("Sum(Quantity)","[GoodsId] = '" & e.DataRow("货品ID") & "' and [单据类型] = '直营'")
e.DataRow("补货销量") = DataTables("直营销售").Compute("Sum(Quantity)","[GoodsId] = '" & e.DataRow("货品ID") & "' and [单据类型] = '补货'")
e.DataRow("新店销量") = DataTables("直营销售").Compute("Sum(Quantity)","[GoodsId] = '" & e.DataRow("货品ID") & "' and [单据类型] = '新店出货'")
If e.NewValue Is Nothing Then
e.DataRow("阶段总销量") = Nothing
Else
e.DataRow("阶段总销量") = e.DataRow("新店销量") + e.DataRow("补货销量") + e.DataRow("直营销量")
End If
End Select
怎么让直营销售为零的时候显示 0呢