Devexpress 之gridControl双击行事件

MouseDown事件
protected internal void gridControl1_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)
{
//MessageBox.Show(hInfo.RowHandle.ToString());
}
}
}

posted on 2014-01-12 13:36  武胜-阿伟  阅读(3175)  评论(0编辑  收藏  举报