我使用了这个代码片段
// Second Column: Hand to use
DataGridViewComboBoxCell handToUseCell = (DataGridViewComboBoxCell)this._robotSelectionDataGridView[Common.SECOND_COLUMN, currentRow];
handToUseCell.Items.Clear();
foreach (Hand hand in robotInfo.Hands)
{
handToUseCell.Items.Add(hand.Name.ToString());
}
handToUseCell.DisplayStyle = (handToUseCell.Items.Count > 1) ? DataGridViewComboBoxDisplayStyle.ComboBox :
DataGridViewComboBoxDisplayStyle.Nothing;
handToUseCell.Value = handToUseCell.Items[0];
handToUseCell.Style.BackColor = Color.DimGray;
但背面颜色没有改变。当我设置 cell.style.backcolor 时会发生什么?