aspnet-devexpress-dot-web-dot-aspxgridlookup-05e42fdd.md
Gets or sets the object from which the data-bound 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.
{
gridLookup.DataSource = Contact.GetContacts();
lookupEdit.DataSource = GetLookupData();
return lookupEdit;
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
gridLookup.DataSource = Contact.GetContacts()
gridLookup.DataBind()
lookupEdit.DataSource = GetLookupData()
Return lookupEdit
See Also