private void CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { if(whatever) e.CellStyle.BackColor = SystemColors.ControlDark;
这对于文本列很好,但是对于组合框列没有区别。如果有更简单的方法,我宁愿不要让所有者绘制控件。
谢谢, 尖峰