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

ASPxComboBox.DataBind() Method

Binds the data source to the ASPxComboBox control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public override void DataBind()
Public Overrides Sub 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.

See Also