111,120
社区成员
发帖
与我相关
我的任务
分享
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;
}
}