private void superGridControl1_BeginEdit(object sender, GridEditEventArgs e) { e.Cancel=true; }
private void superGridControl1_BeginEdit(object sender, DevComponents.DotNetBar.SuperGrid.GridEditEventArgs e) { // 取消编辑 e.Cancel = true; }
/// <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); }
/// <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); }
/// <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); } }