回复 1楼lnp119112555的帖子
设置代码如下:
- private void Form1_Load(object sender, EventArgs e)
- {
- this.fpSpread1.SelectionBlockOptions = FarPoint.Win.Spread.SelectionBlockOptions.Cells;
- this.fpSpread1.CellClick+=fpSpread1_CellClick;
- }
- private void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
- {
- if (e.ColumnHeader)
- {
- this.fpSpread1.Sheets[0].SetActiveCell(e.Row, e.Column);
- }
- }
复制代码 |