aspnet-devexpress-dot-web-dot-aspxlistedit-9646a774.md
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
public override object DataSource { get; set; }
Public Overrides Property DataSource As Object
| Type | Description |
|---|---|
| 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
protected void Page_Init(object sender, EventArgs e) {
ResourcesListBox.DataSource = ResourceDataSourceHelper.GetItems();
ResourcesListBox.DataBind();
ASPxListBox edtMultiResource = ddResource.FindControl("edtMultiResource") as ASPxListBox;
edtMultiResource.DataSource = container.ResourceDataSource;
edtMultiResource.DataBindItems();
}
control.DataSource = dataSource;
control.TextField = classInfo.DefaultProperty;
Dim edtMultiResource As ASPxListBox = TryCast(ddResource.FindControl("edtMultiResource"), ASPxListBox)
edtMultiResource.DataSource = container.ResourceDataSource
edtMultiResource.DataBindItems()
End If
control.DataSource = dataSource
control.TextField = classInfo.DefaultProperty
See Also