Skip to main content
Tab

ASPxComboBox.Text Property

Gets the text displayed within the editor’s edit box.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue("")]
public override string Text { get; set; }

Property Value

Type Default Description
String String.Empty

The textual representation of the editor’s value.

Remarks

The property is overridden only for the purpose of preventing it from appearing in Microsoft Visual Studio designer tools.

<dx:ASPxComboBox ID="ComboBox" runat="server" ValueType="System.String" TextField="ProductName"
    OnTextChanged="ComboBox_TextChanged">
    <!-- ... -->
</dx:ASPxComboBox>
protected void ComboBox_TextChanged(object sender, EventArgs e) {
    var text = ComboBox.Text;
    // ...
}

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

See Also