回复 1楼jplzj的帖子
请使用以下代码测试:
- private void fpSpread1_MouseDown(object sender, MouseEventArgs e)
- {
- HitTestInformation ht= this.fpSpread1.HitTest(e.X, e.Y);
- if (e.Button== System.Windows.Forms.MouseButtons.Right&&ht.Type== HitTestType.RowHeader)
- {
- this.fpSpread1.Sheets[0].ActiveColumnIndex = 0;
- this.fpSpread1.Sheets[0].ActiveRowIndex = ht.HeaderInfo.Row;
- }
- }
复制代码 |