dev GridControl 根据鼠标坐标 选中行

if (e.Button == System.Windows.Forms.MouseButtons.Right)
{
DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo ghi = this.gridView1.CalcHitInfo(new Point(e.X, e.Y));
gridView1.SelectRow(ghi.RowHandle);
}

 

posted @ 2014-03-20 15:04  邵明瑞  阅读(1654)  评论(0编辑  收藏  举报