Exemplo n.º 1
0
        //双击修改事件
        private void gridView_DoubleClick(object sender, EventArgs e)
        {
            // 判断"双击允许修改"标志
            //if (!AllowUpdate)
            //{
            //    return;
            //}

            ////如果鼠标点击在单元格中,则编辑焦点对象。
            //Point point = this.gridControl.PointToClient(Control.MousePosition);
            //if (GridHelper.HitCell(this.gridView, point))
            //{
            //    UpdateObject();
            //}
            if (FocusedObject != null)
            {
                FrmGHBZTLContents dlg = new FrmGHBZTLContents();
                FrmGHBZTLContents.ParentForm = dlg;
                dlg.RightObject = vp;
                dlg.LayoutUID   = FocusedObject.UID;
                dlg.ShowDialog();
            }
        }
Exemplo n.º 2
0
        //˫���޸��¼�
        private void gridView_DoubleClick(object sender, EventArgs e)
        {
            // �ж�"˫�������޸�"��־
            //if (!AllowUpdate)
            //{
            //    return;
            //}

            ////���������ڵ�Ԫ���У���༭�������
            //Point point = this.gridControl.PointToClient(Control.MousePosition);
            //if (GridHelper.HitCell(this.gridView, point))
            //{
            //    UpdateObject();
            //}
            if (FocusedObject != null)
            {

                FrmGHBZTLContents dlg = new FrmGHBZTLContents();
                FrmGHBZTLContents.ParentForm = dlg;
                dlg.RightObject = vp;
                dlg.LayoutUID = FocusedObject.UID;
                dlg.ShowDialog();
            }
        }