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;//鼠标选中行号 }
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;//鼠标选中行号 }