DevExpress GridView Double Click Event Code
程序员文章站
2022-06-01 23:34:06
...
给girdview添加MouseDown事件代码
private void gridView1_MouseDown(object sender, MouseEventArgs e) { DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hInfo = gridView1.CalcHitInfo(new Point(e.X, e.Y)); if (e.Button == MouseButtons.Left && e.Clicks == 2) { //判断光标是否在行范围内 if (hInfo.InRow) { // do something } } }
下一篇: 北京专科学校实力排名