New to Telerik UI for WinFormsStart a free 30-day trial

Used to manage editors in GridVisualElement.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewEditManager : IEditorManager, IDisposable, IGridViewEventListener

Inheritance: objectGridViewEditManager

Implements: IDisposableIEditorManagerIGridViewEventListener

Constructors

Initializes a new instance of the GridViewEditManager class.

C#
public GridViewEditManager(RadGridViewElement gridViewElement)
Parameters:gridViewElementRadGridViewElement

The RadGridView, RadGridViewElement associated with this class.

Properties

Gets the active editor

C#
public IInputEditor ActiveEditor { get; protected set; }

Gets or sets a value indicating whether the active editor should be closed when validation process fails.

C#
public bool CloseEditorWhenValidationFails { get; set; }

The instance of RadGridViewElement associated with this class.

C#
public RadGridViewElement GridViewElement { get; }

Gets a value indicating whether the cell is in edit mode.

C#
public bool IsInEditMode { get; }

Methods

Puts the current cell in edit mode.

C#
public virtual bool BeginEdit()
Returns:

bool

Returns true if the process is successful.

Close the currently active editor and discard changes.

C#
public virtual bool CancelEdit()
Returns:

bool

true on successful cancellation.

Ends the edit operation without committing the changes

C#
public virtual bool CloseEditor()
Returns:

bool

true on success.

Disposes all resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Commits any changes and ends the edit operation on the current cell.

C#
public virtual bool EndEdit()
Returns:

bool

true on success.

Finishes the editing process.

C#
protected virtual bool EndEditCore(bool validate, bool cancel)
Parameters:validateboolcancelbool

A value that indicates whether the operation should be canceled.

Returns:

bool

returns true if successful and the editor is closed.

Gets the default editor for the specified provider.

C#
public virtual IInputEditor GetDefaultEditor(IEditorProvider provider)
Parameters:providerIEditorProvider

The IEditorProvider to get editor for.

Returns:

IInputEditor

An instance of IInputEditor if successful.

Implements: IEditorManager.GetDefaultEditor(IEditorProvider)

Initializes the editor.

C#
protected virtual void InitializeEditor(IInputEditor activeEditor)
Parameters:activeEditorIInputEditor

An instance of IInputEditor

Checks whether there is a permanent editor associated with the specified type.

C#
public virtual bool IsPermanentEditor(Type editorType)
Parameters:editorTypeType

The type to check.

Returns:

bool

true if it exists permanent editor for the given type.

Implements: IEditorManager.IsPermanentEditor(Type)

Raises the event.

C#
protected virtual void OnPositionChanged(PositionChangedEventArgs args)
Parameters:argsPositionChangedEventArgs

The PositionChangedEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnPositionChanging(PositionChangingEventArgs args)
Parameters:argsPositionChangingEventArgs

The PositionChangingEventArgs instance containing the event data.

Register a permanent editor for specific type.

C#
public void RegisterPermanentEditorType(Type editor)
Parameters:editorType

The type to register.

Implements: IEditorManager.RegisterPermanentEditorType(Type)