private void ImplementAlternatRowColoring()
{
if (!this.EnableAlternateRowColoring)
{
this.AlternatingRowsDefaultCellStyle = null;
}
else
{
var s = new DataGridViewCellStyle();
var bg = SystemColors.Window;
var fg = SystemColors.WindowText;
s.ForeColor = fg;
s.BackColor = Color.FromArgb(this.ApproachColor(fg.R, bg.R), this.ApproachColor(fg.G, bg.G), this.ApproachColor(fg.B, bg.B));
this.AlternatingRowsDefaultCellStyle = s;
}
}