FpSpread1.SaveChanges();
for (int j = 0; j <= dt.Rows.Count - 1; j++)
{
//FpSpread1.Cells[j, (int)Col.选择].Value = "1";
//FpSpread1.Cells[j, (int)Col.选择].Value = "0";
FpSpread1.Cells[j, (int)Col.选择].Value = dt.Rows["CDEPCODE"].ToString() ;//你要赋的值
} |