我在這上幾天了,但我不能把它正確....我需要更改我的DataGridView的BackColor
所以請幫助我! 這就是我現在所擁有的:
我的DataGridView綁定到一個數據庫
誰能幫幫我嗎?
DateTime FactuurDatum = Convert.ToDateTime(row.Cells [2] .Value.ToString()); int termijn = Convert.ToInt32(row.Cells [7] .Value.ToString());
DateTime finalDate = FactuurDatum.AddDays((double)termijn);
if (finalDate > DateTime.Now)
{
}
else
{
row.Cells[8].Style.BackColor = Color.Red;
}</code>
有什麼麻煩? – 2010-07-08 14:47:26