string tempSFZH = "";
foreach (DataRow rs in
ds.Tables[0].Rows)
{
tempSFZH =
rs[ht["身份证号码"].ToString()].ToString();
foreach (DataRow
rs1 in ds_stuAll.Tables[0].Rows)
{
foreach (DataColumn dc in ds_stuAll.Tables[0].Columns)
{
if (dc.ColumnName == "sfzh" && rs1[dc].ToString() ==
tempSFZH)
{
rs1["xjh"] = "";
rs1["user_xh"] = "";
}
}
}
}
清空dataset中的某行某列的数据,布布扣,bubuko.com
时间: 2024-10-12 12:42:35