现在的位置: 首页 > 综合 > 正文

判斷DataSet中某個字段值是否為空的方法

2018年05月03日 ⁄ 综合 ⁄ 共 196字 ⁄ 字号 评论关闭

 (1)dspurhead.Tables[0].Rows[0]["order_date"]==System.DBNull.Value

 (2)dspurhead.Tables[0].Rows[0]["order_date"].ToString()==""

 (3)System.Convert.IsDBNull(dspurhead.Tables[0].Rows[0]["order_date"])

抱歉!评论已关闭.