您好,你可以在点击Cell事件中取消
- fpSpread1.CellClick += FpSpread1_CellClick;
-
- private void FpSpread1_CellClick(object sender, CellClickEventArgs e)
- {
- if (e.Column == 1 && e.Row == 1)
- {
- e.Cancel = true;
- }
- }
复制代码
也可以给单元格设置 CanFocus 不让选中
- fpSpread1.ActiveSheet.Cells[2, 2].CanFocus = false;
复制代码 |