FormatCells

FormatCells takes a Func<DataGridViewCell, bool> parameter for searching specific cells and two additional parameters for formatting the cells font and background color. These parameters are System.Drawing.Color enums. Example:

_dataGridView.FormatCells(x => x.Value.ToString() == "[email protected]", Color.White, Color.Red);

Last updated

Was this helpful?