I know this is a stupid question but i can’t get my desired out put.Actually i want change the datagridview cell fore colors as dynamically for this i have logic like this
this.dataGridView1.Rows[0].Cells[1].Style.ForeColor = System.Drawing.Color.Red;
but this is not apply to the cell(even cell background also not applied),
But i get the fore color name what i assigned to the cell
string colorname = this.dataGridView1.Rows[0].Cells[1].Style.ForeColor.Name;
.Is there any mistake in my query please help me.
Check this
I hope This help!