你好,通过 CellClick 事件和 CellDuobleClick 事件判断行列索引代码如下:
- private void fpSpread1_CellClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
- {
- int _row = e.Row;
- int _col = e.Column;
- //判断逻辑
- if (true)
- {
- //设置代码
- }
- }
- private void fpSpread1_CellDoubleClick(object sender, FarPoint.Win.Spread.CellClickEventArgs e)
- {
- int _row = e.Row;
- int _col = e.Column;
- //判断逻辑
- if (true)
- {
- //设置代码
- }
- }
复制代码 |