Skip to main content

ASPxListBox.Value Property

Gets or sets the editor’s value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public override object Value { get; set; }

Property Value

Type Description

A Object value representing the editor’s value.


This property overrides the base ASPxEdit.Value property to implement a proper display of editor items when the property’s value changes.

The Value property can be used to manipulate the editor’s value.

If you need to validate the editor’s value before posting it, you can handle either client-side ASPxClientEdit.Validate or server-side ASPxEdit.Validate events, or both. If no validation is performed and the value posted is not correct, then an exception is raised.

If the Value property returns null, make sure that you set the ValueType property to an .NET type that matches the ValueField column type. Otherwise, the editor cannot find the corresponding item because the editor’s ValueType property does not match the item type (String by default).

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Value property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also