Single cell color

Jun 24, 2009 at 2:56 PM

Hi,


I want to change the color of a single cell based on a certain value. When i use

grid[1, 1].View.BackColor = Color.Red;

All the cells become red, which is not what I want.

Regards,

Jun 24, 2009 at 3:08 PM

you must define a new instance of cell view , then affect it .

Cells.Views.Cell viewCell = new Cells.Views.Cell();

viewCell.BackColor = Color.Red;

grid[1, 1].View =viewCell;

 

Enjoy .

Jun 25, 2009 at 7:43 AM

That kind of works, but sometimes, the cells aren't updated