我明白您的需求了,选中单元格时候高亮,不选的时候不要背景色。
使用如下代码
fpSpread1.PaintActiveCellInSelection = true;
fpSpread1.RetainSelectionBlock = false;
fpSpread1.ActiveSheet.SelectionStyle = FarPoint.Win.Spread.SelectionStyles.SelectionColors;
fpSpread1.ActiveSheet.SelectionBackColor = Color.Red; |