请参考以下代码是否能够满足你的需求:
- private void Form1_Load(object sender, EventArgs e)
- {
- fpSpread1.ActiveSheet.OperationMode = FarPoint.Win.Spread.OperationMode.ReadOnly;
- fpSpread1.CellClick += new FarPoint.Win.Spread.CellClickEventHandler(fpSpread1_CellClick);
- }
- void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
- {
- e.Cancel = true;
- }
复制代码 |