aspnet-devexpress-dot-web-dot-aspxautocompleteboxbase-595fec3d.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 virtual string ValueField { get; set; }
<DefaultValue("")>
Public Overridable 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 AutoCompleteBoxPropertiesBase.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.
cmb.TextField = "Data";
cmb.ValueField = "Id";
cmb.DataBind();
cmb.TextField = "Data"
cmb.ValueField = "Id"
cmb.DataBind()
See Also