日期:2014-05-18 浏览次数:21013 次
        private void gvList_MouseDown(object sender, MouseEventArgs e)
        {
            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hi = this.gvList.CalcHitInfo(new Point(e.X, e.Y));
            _IsHitInRow = hi.InRow;
            if (hi.RowHandle < 0)
            {
                this.gcList.ContextMenuStrip = null;
                return;
            }
            else
            {
                gcList.ContextMenuStrip = contextMenuStrip1;
            }
        }