1.实现当鼠标移到数据行时,右键删除数据。

 步骤1.先定义变量CurrentRowIndex来存储鼠标经过的行数。

如下:

1   public partial class FormTest : Form
2     {
3         private bool isLoad { getset; }
4         /// <summary>
5         /// 当前行号
6         /// </summary>
7         private int CurrentRowIndex { getset; }

相关文章:

  • 2021-12-06
  • 2021-07-10
  • 2021-09-20
  • 2021-10-27
  • 2021-09-01
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-29
  • 2022-02-07
  • 2021-08-17
  • 2021-07-11
  • 2021-06-07
  • 2022-12-23
相关资源
相似解决方案