Back to Devexpress

ASPxListBox.DataBindItems() Method

aspnet-devexpress-dot-web-dot-aspxlistbox-295f6b3c.md

latest2.8 KB
Original Source

ASPxListBox.DataBindItems() Method

Binds edit items to the data source’s data, without resolving any data-binding expressions within the editor.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public virtual void DataBindItems()
vb
Public Overridable Sub DataBindItems

Remarks

The DataBindItems method can be used to initialize items with values taken from the bound data source. A call to this method doesn’t resolve any data-binding expressions defined within the editor.

Note

The DataBindItems method does not raise the DataBinding event. For more details, see the Binding to Data topic.

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

asp-net-web-forms-scheduler-custom-adaptive-form-using-templates/CS/WebApplication1/DevExpress/ASPxSchedulerForms/AppointmentForm.ascx.cs#L214

csharp
edtMultiResource.DataSource = container.ResourceDataSource;
edtMultiResource.DataBindItems();
if(edtMultiResource == null)

asp-net-web-forms-scheduler-custom-adaptive-form-using-templates/VB/WebApplication1/DevExpress/ASPxSchedulerForms/AppointmentForm.ascx.vb#L221

vb
edtMultiResource.DataSource = container.ResourceDataSource
edtMultiResource.DataBindItems()
If edtMultiResource Is Nothing Then

See Also

List Box

ASPxListBox Class

ASPxListBox Members

DevExpress.Web Namespace