• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 329
  • Last Modified:

Setting text color in a specific cell in DataGridView?

I want to be able to set the color of the text in a specific cell in a DataGridView programmatically during runtime?   How can I do this?


Thanks,
Ted
0
TALJr
Asked:
TALJr
1 Solution
 
mokuleCommented:
           this.DatagridView1.Rows[1].Cells[1].Style.ForeColor = Color.Black;
            this.DatagridView1.Rows[1].Cells[1].Style.SelectionForeColor = Color.Black;
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now