日期:2014-05-17 浏览次数:20980 次
if (DV.Rows[i].Cells["拣货状态"].EditedFormattedValue.ToString() == "正在拣货") { DV.Rows[i].DefaultCellStyle.ForeColor = Color.Red; }
private void DV_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) { if (DV.Rows[e.rowindex].Cells["拣货状态"].EditedFormattedValue.ToString() == "正在拣货") { DV.Rows[i].DefaultCellStyle.ForeColor = Color.Red; } }