Back to Devexpress

ASPxAutoCompleteBoxBase.ValueField Property

aspnet-devexpress-dot-web-dot-aspxautocompleteboxbase-595fec3d.md

latest2.7 KB
Original Source

ASPxAutoCompleteBoxBase.ValueField Property

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

Declaration

csharp
[DefaultValue("")]
public virtual string ValueField { get; set; }
vb
<DefaultValue("")>
Public Overridable Property ValueField As String

Property Value

TypeDefaultDescription
StringString.Empty

A string value that specifies the name of the data source field from which the editor obtains item values.

|

Remarks

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.

asp-net-web-forms-grid-initialize-editor-conditionally/CS/WebApplication_Grid/Templates/CustomEditItemTemplate.cs#L36

csharp
cmb.TextField = "Data";
cmb.ValueField = "Id";
cmb.DataBind();

asp-net-web-forms-grid-initialize-editor-conditionally/VB/WebApplication_Grid/Templates/CustomEditItemTemplate.vb#L36

vb
cmb.TextField = "Data"
cmb.ValueField = "Id"
cmb.DataBind()

See Also

ASPxAutoCompleteBoxBase Class

ASPxAutoCompleteBoxBase Members

DevExpress.Web Namespace