if (row.Table.Columns.Contains("DealRecord_GiftCost"))
{
if (row["DealRecord_GiftCost"] != null && row["DealRecord_GiftCost"].ToString() != "")
{
model.DealRecord_GiftCost = decimal.Parse(row["DealRecord_GiftCost"].ToString());
}
}
原文:http://www.cnblogs.com/taikongbai/p/5241660.html