dataGridView

Hi,

I have a dataGridView and I'm using it within a windows form.

It displays a heap of data, both string and numerical values. I need to colour code the values based on specific ranges. The logic / code for this I can do.

But, I can't seem to get the colouring code right.... For example, I've tried:

dataGridView1->Rows[0]->Cells[0]->Style->ForeColor.Red;

The above code is placed in the Form1_Load event and by my understanding, this should colour the number that is placed in row 0, cell 0.... Oh, and this compiles with no error! I'm obviously missing something.

Anyone, out there that can correct the above code?

Cheers,

Ps. all my googling only gives me VB and C# results. In need C++/CLI (I think).
Last edited on
Topic archived. No new replies allowed.