aspnet-devexpress-dot-web-dot-aspxlistedit-4eb38344.md
Gets or sets the data source field that provides values for the editor’s items.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("")]
public string ValueField { get; set; }
<DefaultValue("")>
Public Property ValueField As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A string value that specifies the name of the data source field from which the editor obtains item values.
|
This property is a wrapper of the ListEditProperties.ValueField property.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ValueField 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.
control.TextField = classInfo.DefaultProperty;
control.ValueField = classInfo.KeyProperty;
control.ValueType = classInfo.TypeInfo.KeyMember.MemberType;
control.TextField = classInfo.DefaultProperty
control.ValueField = classInfo.KeyProperty
control.ValueType = classInfo.TypeInfo.KeyMember.MemberType
See Also