ASPxComboBox.Value Property
Gets or sets the editor’s edited value.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Description |
---|---|
Object | A Object value representing the editor’s value. |
#Remarks
Use the Value property to manipulate the editor’s value.
If you need to validate the editor’s value before posting it, you can handle either the client-side ASPxClientEdit.Validate or server-side ASPxEdit.Validate events, or both. If no validation is performed and the value posted is incorrect, then an exception is raised.
Note
If the ASPx
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).
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Value property.
Note
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.