how can i change the color of the text which is being edited. i have a datagridview with values inside. what i want is when the user edit the text inside the cell. it must change the text to red how can i do that?
private void Gridview_Output_CellFormatting_1(object sender, DataGridViewCellFormattingEventArgs e)
{
if (Gridview_Output.Columns[e.ColumnIndex].Name == "FontOut")
{
Gridview_Output.Rows[e.RowIndex].Cells[3].Value = "FontOut";
DataGridViewCellStyle Cstyle = new DataGridViewCellStyle();
Cstyle.ForeColor = Color.Red;
}
}
Aucun commentaire:
Enregistrer un commentaire