Tab

ASPxAutoCompleteBoxBase.DataSourceID Property

Specifies the ID of the control from which the editor gets data items.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

Declaration

public override string DataSourceID { get; set; }

Property Value

Type Description
String

The ID of the data source control.

Remarks

This topic demonstrates how to create an editor and bind it to a data source at design and runtime.

Design Time

  1. Add the ASPxComboBox to the form.

  2. In design mode, invoke the control’s smart tag menu and select the <New data source…> command.

    ASPxComboBox - New Data Source

  3. Choose a data source type and configure its options:

    • Specify the fields that you want to display in the ASPxComboBox control.

    • Click Advanced… and select the Generate INSERT, UPDATE, and DELETE statements check box to edit your data source in the web application.

    • Click Test Query to preview the selected data.

    ASPxComboBox - SelectColumns

  4. Specify the ASPxComboBox.TextField and ASPxComboBox.ValueField properties.

The resulting code: