How to change the Data Grid View Cell Fore color using C#
  •   private void dataGridViewFence_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
            {
                if (e.ColumnIndex == 6) //is Active Checked box
                {
                    if ((bool)e.Value== false) //the Active checked box is unchecked
                        dataGridViewFence.Rows[e.RowIndex].Cells[0].Style.ForeColor = Color.Red; 
                }
            }

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

Optimum Creative