9
Reply

Change Color of a datagridview Cell while entering data.

Mohammed Ashraf

Mohammed Ashraf

Jul 27 2016 4:54 AM
418
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)