// Cell 顏色
private void DataGridView_Item_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)
{
if (e.RowIndex > -1 && e.ColumnIndex > -1)
{
if (DataGridView_Item.Rows[e.RowIndex].Cells["狀態"].Value.ToString() == "逾期")
DataGridView_Item.Rows[e.RowIndex].DefaultCellStyle.BackColor = System.Drawing.Color.Orange;//改送審顏色
else if (DataGridView_Item.Rows[e.RowIndex].Cells["狀態"].Value.ToString() == "完成")
DataGridView_Item.Rows[e.RowIndex].DefaultCellStyle.BackColor = System.Drawing.Color.LimeGreen;//改送審顏色
else if (DataGridView_Item.Rows[e.RowIndex].Cells["狀態"].Value.ToString() == "執行中")
DataGridView_Item.Rows[e.RowIndex].DefaultCellStyle.BackColor = System.Drawing.Color.SkyBlue;//改送審顏色
}
}