标签:style strong os for line div
DataView dv = DataObj.GetBmfzr("03").Tables[0].DefaultView;
dv.Sort = "bmbh";
DataTable dt = ds.Tables[0];
dt.Columns.Add("bkzz",typeof(string));
foreach (DataRow rs in dt.Rows)
{
string fzr = "";
DataRowView[] drv = dv.FindRows(new object[] { rs["bzh"].ToString() });
if (drv.Length > 0)
{
for (int n = 0; n <= drv.Length - 1; n++)
{
fzr += fzr == "" ? drv[n]["xm"].ToString() : "," + drv[n]["xm"].ToString();
}
}
rs["bkzz"] = fzr;
}
c# datatable增加列并赋值,布布扣,bubuko.com
标签:style strong os for line div
原文地址:http://www.cnblogs.com/miraclesakura/p/3820481.html