المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : DataGridView Cell Color



C# Programming
07-06-2011, 01:40 AM
Hi

I am trying to set the BackColor of a specific cell (C2010 Enterprise), but have failed so far - can you help!

I have tried this:
DataGridView1[2, 3].Style.BackColor = Color.Red;
but that didnt work (doesnt appear to do anything) http://www.barakasoft.com/script/Forums/Images/smiley_cry.gif

Have you any other suggestions?

Cheers