Back to Devexpress

ASPxAutoCompleteBoxBase.TextField Property

aspnet-devexpress-dot-web-dot-aspxautocompleteboxbase-26d92d81.md

latest2.9 KB
Original Source

ASPxAutoCompleteBoxBase.TextField Property

Gets or sets the data source field that provides display texts for the editor’s items.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public virtual string TextField { get; set; }
vb
<DefaultValue("")>
Public Overridable Property TextField 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 texts.

|

Remarks

This property is a wrapper of the AutoCompleteBoxPropertiesBase.TextField property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TextField 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#L35

csharp
cmb.DataSource = DataProvider.GetDictionaryData(DataType.Dictionary1);
cmb.TextField = "Data";
cmb.ValueField = "Id";

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

vb
cmb.DataSource = DataProvider.GetDictionaryData(WebApplication_GridTest.DataType.Dictionary1)
cmb.TextField = "Data"
cmb.ValueField = "Id"

See Also

ValueField

ASPxAutoCompleteBoxBase Class

ASPxAutoCompleteBoxBase Members

DevExpress.Web Namespace