I have a large DataGridView control that has several cells most of which contain a button. How can I change the color of those buttons?
This changes the "outline" of the button but not the button itself.
row.Cells[2].Style.BackColor = System.Drawing.Color.Red;
This doesn't seem to change anything that's visible:
row.Cells[2].Style.ForeColor = System.Drawing.Color.Red;
If it's not possible to change the background, is it possible to change the font on the button?
Using .NET 2.0.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…