回复 4楼adam的帖子
单击双击取消方法如下:
- private void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
- {
- if (e.ColumnHeader)
- {
- e.Cancel = true;
- this.fpSpread1.Sheets[0].SetActiveCell(0, e.Column);
- }
- }
- private void fpSpread1_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
- {
- if (e.ColumnHeader)
- {
- e.Cancel = true;
- this.fpSpread1.Sheets[0].SetActiveCell(0, e.Column);
- }
- }
复制代码
“点击内部的格子的时候颜色也是不要的 ”问题解决了吗? |