Mohammed Ashraf

Mohammed Ashraf

  • 545
  • 2.3k
  • 506.4k

Change Color of a datagridview Cell while entering data.

Jul 27 2016 4:54 AM
Dear All,
I want change cell color and style while entering data into it.
I used following code but not work. Please help me.
dataGridView1.Rows.Add(strAccountName).DefaultCellStyle.BackColor =Color.Yellow;
Please note that I want to change forecolor and boldness.

Answers (9)