回复 1楼Hjr2350的帖子
请使用以下代码测试:
- private void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
- {
- if (e.Button == System.Windows.Forms.MouseButtons.Right)
- {
- this.fpSpread1.Sheets[0].SetActiveCell(e.Row, 0);
- this.fpSpread1.Sheets[0].Models.Selection.AddSelection(e.Row, e.Column,1,this.fpSpread1.Sheets[0].ColumnCount);
- }
- }
复制代码 |