回复 1楼csking的帖子
请问你希望实现的效果是否为点击不可输入列时,焦点设置在点击单元格的可输入列上?代码如下:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.fpSpread1.EditModePermanent = true;
- this.fpSpread1.EditModeReplace = true;
- this.fpSpread1.ActiveSheet.ColumnCount = 2;
- this.fpSpread1.ActiveSheet.Columns[1].Locked = true;
- this.fpSpread1.CellClick += fpSpread1_CellClick;
- }
- void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
- {
- this.fpSpread1.ActiveSheet.SetActiveCell(e.Row,0);
- }
复制代码 |