Dev 获取鼠标所在行的索引值

private void gControl_MouseDown(object sender, MouseEventArgs e)
{
    DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hi = this.gView.CalcHitInfo(new Point(e.X, e.Y));
    vsRowNum = hi.RowHandle;//鼠标选中行号        
}

你可能感兴趣的:(鼠标,dev,gridcontrol,索引值,所在行)