6
Reply

DataGridViewCellStyle SelectionBackColor problem

person

person

Sep 6 2010 9:48 AM
6.1k
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)