我正在尝试循环遍历数据集,无论何时出现0,我都希望将其更改为null值或空白。到目前为止,我有以下代码:
foreach (DataRow drRow in ds.Tables[0].Rows)
{
//loop through cells in that row
{
//if the value is 0 change to null or blank
}
}
有人能帮我解决这个问题吗?