Back to Devexpress

ASPxListEdit.DataSource Property

aspnet-devexpress-dot-web-dot-aspxlistedit-9646a774.md

latest3.9 KB
Original Source

ASPxListEdit.DataSource Property

Gets or sets the object from which a data-bound combo box editor retrieves its list of data items.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public override object DataSource { get; set; }
vb
Public Overrides Property DataSource As Object

Property Value

TypeDescription
Object

An object that represents the editor’s data source.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the DataSource 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.

asp-net-web-forms-create-responsive-web-app/CS/ResponsiveWebApplication/Scheduler.aspx.cs#L9

csharp
protected void Page_Init(object sender, EventArgs e) {
    ResourcesListBox.DataSource = ResourceDataSourceHelper.GetItems();
    ResourcesListBox.DataBind();

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

csharp
ASPxListBox edtMultiResource = ddResource.FindControl("edtMultiResource") as ASPxListBox;
edtMultiResource.DataSource = container.ResourceDataSource;
edtMultiResource.DataBindItems();

xaf-how-to-display-a-collection-property-as-a-checked-list-box/CS/DXExample.Module.Web/WebCheckedListBoxPropertyEditor.cs#L43

csharp
}
control.DataSource = dataSource;
control.TextField = classInfo.DefaultProperty;

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

vb
Dim edtMultiResource As ASPxListBox = TryCast(ddResource.FindControl("edtMultiResource"), ASPxListBox)
edtMultiResource.DataSource = container.ResourceDataSource
edtMultiResource.DataBindItems()

xaf-how-to-display-a-collection-property-as-a-checked-list-box/VB/DXExample.Module.Web/WebCheckedListBoxPropertyEditor.vb#L43

vb
End If
control.DataSource = dataSource
control.TextField = classInfo.DefaultProperty

See Also

ASPxListEdit Class

ASPxListEdit Members

DevExpress.Web Namespace