A newer version of this page is available. Switch to the current version.

AutoCompleteBoxPropertiesBase.TextField Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public string TextField { get; set; }
Public Property TextField As String

Property Value

Type Default Description


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


If an editor is data bound (via the AutoCompleteBoxPropertiesBase.DataSourceID or AutoCompleteBoxPropertiesBase.DataSource property), the editor populates its AutoCompleteBoxPropertiesBase.Items collection by retrieving items from the specified data source and obtaining item characteristics (such as the item text, value or displayed image) from specific data fields. Use the TextField property to specify a data source field from which the item text should be obtained.

If the TextField property of a data bound editor is not defined, the control can automatically obtain the item text from a data field named "Text".

The TextField property is not in effect if the editor is used in multi-column mode.


The TextField property synchronizes its value with the editor's ASPxAutoCompleteBoxBase.TextField property.


The following example illustrates how to use the TextField property.

WebForms approach:


For a full example, see the ASPxComboBox - Cascading Combo Boxes demo.

<dx:ASPxComboBox runat="server" ID="CmbCountry" DropDownStyle="DropDownList" IncrementalFilteringMode="StartsWith"
    TextField="CountryName" ValueField="CountryName" Width="100%" DataSourceID="CountriesDataSource"
    <ClientSideEvents SelectedIndexChanged="function(s, e) { OnCountryChanged(s); }" />

MVC approach:


For a full example, refer to