private void CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if(whatever)
e.CellStyle.BackColor = SystemColors.ControlDark;
这适用于文本列,但对于组合框列没有区别。如果有更简单的方法可以做到这一点,我会尽快不让所有者绘制控件。
谢谢,斯派克
private void CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if(whatever)
e.CellStyle.BackColor = SystemColors.ControlDark;
这适用于文本列,但对于组合框列没有区别。如果有更简单的方法可以做到这一点,我会尽快不让所有者绘制控件。
谢谢,斯派克