datacolumn 表达式 除数为0

 dt.columns.add("avgp",typeof(decimal),"IIF(qty=0,0,price/qty)")

原文地址:https://www.cnblogs.com/runliuv/p/3473502.html