New to Telerik UI for WinForms? Start a free 30-day trial

IValueEditor

Interface

This interface supports the editor infrastructure of the RadGridView.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public interface IValueEditor

Properties

Gets or sets the current value being edited; the supported type and conversion rules are defined by the concrete editor.

C#
object Value { get; set; }

Methods

Begins an editing session after the editor has been initialized.

C#
void BeginEdit()

Ends the current editing session.

C#
bool EndEdit()
Returns:

bool

Whether the implementation completed the end-edit operation.

Initializes the editor with its host and the value to display before editing begins.

C#
void Initialize(object owner, object value)
Parameters:ownerobject

The control-specific owner or editor host.

valueobject

The initial value to load into the editor.

Runs validation for the current editor value.

C#
bool Validate()
Returns:

bool

The validation result reported by the concrete editor implementation.

Implementations differ when validation is canceled: BaseInputEditor returns false, while EditorBaseElement restores the initialized value and returns true.

Events

Occurs when the editor is finished validating the value.

C#
event EventHandler Validated

Occurs when the editor is validating the value.

C#
event CancelEventHandler Validating

Occurs when internally the editor detects an error or when the Validating event fails.

C#
event ValidationErrorEventHandler ValidationError

Occurs when the value of the editor changes.

C#
event EventHandler ValueChanged

Occurs when the editor value is being changed. Cancelable event.

C#
event ValueChangingEventHandler ValueChanging