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; }

相关文章: