Search code examples
.netwpfgridviewcolorscell

How to set the TEXT color of a GridView cell?


I tried this, but not only the text but also the border of the cell is set to Green. How do I set only the TEXT color to Green? Thanks.

e.Row.Cells[0].ForeColor = Color.Green;

Solution

  • Maybe this one can help you.

    gridview row color