Devexpress 之gridControl双击行事件
时间:2014-01-15 23:54:40
收藏:0
阅读:976
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());
}
}
}
原文:http://www.cnblogs.com/zeroone/p/3515873.html
评论(0)