Esempio n. 1
0
 private void superGridControl1_BeginEdit(object sender, GridEditEventArgs e)
 {
     e.Cancel=true;
 }
Esempio n. 2
0
 private void superGridControl1_BeginEdit(object sender, DevComponents.DotNetBar.SuperGrid.GridEditEventArgs e)
 {
     // 取消编辑
     e.Cancel = true;
 }
Esempio n. 3
0
        /// <summary>
        /// Handles invocation of EndEdit events
        /// </summary>
        internal bool DoEndEditEvent(
            GridPanel gridPanel, GridCell cell, IGridCellEditControl editor)
        {
            if (EndEdit != null)
            {
                GridEditEventArgs ev = new
                    GridEditEventArgs(gridPanel, cell, editor);

                EndEdit(this, ev);

                return (ev.Cancel);
            }

            return (false);
        }
Esempio n. 4
0
        /// <summary>
        /// Handles invocation of RowMarkedDirty events
        /// </summary>
        internal bool DoRowMarkedDirtyEvent(
            GridCell gridCell, IGridCellEditControl editor)
        {
            if (RowMarkedDirty != null)
            {
                GridEditEventArgs ev = new
                    GridEditEventArgs(gridCell.GridPanel, gridCell, editor);

                RowMarkedDirty(this, ev);

                return (ev.Cancel);
            }

            return (false);
        }
Esempio n. 5
0
        /// <summary>
        /// Handles invocation of EditorValueChanged events
        /// </summary>
        internal void DoEditorValueChangedEvent(
            GridCell gridCell, IGridCellEditControl editor)
        {
            if (EditorValueChanged != null)
            {
                GridEditEventArgs ev = new
                    GridEditEventArgs(gridCell.GridPanel, gridCell, editor);

                EditorValueChanged(this, ev);
            }
        }