Skip to main content
Tab

ASPxComboBox.DataBind() Method

Binds the data source to the ASPxComboBox control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public override void DataBind()

Remarks

This method binds data from the data source to the ASPxComboBox control.

If the “Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control” exception appears, use the ASPxAutoCompleteBoxBase.DataBindItems method instead of the DataBind method. Note that the DataBinding event is not raised in this case. For more details, see the Binding to Data topic.

Note

If you call the DataBind method within the ASPxAutoCompleteBoxBase.Callback event handler, the DataBinding event is not raised. For more details, see the Binding to Data topic.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DataBind() method.

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