Mohammed Ashraf

Mohammed Ashraf

  • 553
  • 2.3k
  • 502.2k

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)