Back to Devexpress

ASPxGridLookup.DataSource Property

aspnet-devexpress-dot-web-dot-aspxgridlookup-05e42fdd.md

latest3.3 KB
Original Source

ASPxGridLookup.DataSource Property

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

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-gridlookup-dropdown-with-grouped-items/CS/DXWebApplication1/MultiColumn.aspx.cs#L18

csharp
{
    gridLookup.DataSource = Contact.GetContacts();

xaf-how-to-display-an-enumeration-property-as-a-drop-down-box-with-check-boxes/CS/E689.Module.Web/Editors/ASPxEnumPropertyEditorEx.cs#L51

csharp
lookupEdit.DataSource = GetLookupData();
return lookupEdit;

asp-net-web-forms-gridlookup-dropdown-with-grouped-items/VB/DXWebApplication1/MultiColumn.aspx.vb#L15

vb
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
    gridLookup.DataSource = Contact.GetContacts()
    gridLookup.DataBind()

xaf-how-to-display-an-enumeration-property-as-a-drop-down-box-with-check-boxes/VB/E689.Module.Web/Editors/ASPxEnumPropertyEditorEx.vb#L50

vb
lookupEdit.DataSource = GetLookupData()
Return lookupEdit

See Also

DataSourceID

ASPxGridLookup

ASPxGridLookup Class

ASPxGridLookup Members

DevExpress.Web Namespace