person

person

  • NA
  • 96
  • 0

DataGridViewCellStyle SelectionBackColor problem

Sep 6 2010 9:48 AM
Hi,

I have a DataGridView and multiple CellStyles....

    DataGridViewCellStyle dataGridViewCellStyle20 = new DataGridViewCellStyle();
    ... more definitions i.e. enabled etc etc

    dataGridViewCellStyle20.SelectionBackColor = Color.FromArgb(20, Color.Navy);

But my cell style is completely transparent and has loads of painting issues....however this is exceptable

     dataGridViewCellStyle20.SelectionBackColor = Color.Navy;

It doesnt seem to like my .FromArgb(), method....anyone have any idea?

Thanks greatly in advance,
U.

Answers (6)