Back to Devexpress

ASPxDataWebControl.DataMember Property

aspnet-devexpress-dot-web-dot-aspxdatawebcontrol-8ab1268d.md

latest2.8 KB
Original Source

ASPxDataWebControl.DataMember Property

Gets or sets the name of the list of data that the data-bound control binds to, in instances where the data source contains more than one distinct list of data items.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public virtual string DataMember { get; set; }
vb
<DefaultValue("")>
Public Overridable Property DataMember As String

Property Value

TypeDefaultDescription
StringString.Empty

The name of the specific list of data that the data-bound control binds to, if more than one list is supplied by the data source control.

|

Remarks

The value of the DataMember property is stored in view state.

This property cannot be set by themes or style sheet themes.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataMember 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-grid-create-report-based-on-grid-layout/CS/WebApplication1/ReportHelper.cs#L42

csharp
if(webDataSource != null)
    InitDataSource(webDataSource, dataGrid.DataMember);
else if(listDataSource != null)

asp-net-web-forms-grid-create-report-based-on-grid-layout/VB/WebApplication1/ReportHelper.vb#L42

vb
If webDataSource IsNot Nothing Then
    InitDataSource(webDataSource, dataGrid.DataMember)
ElseIf listDataSource IsNot Nothing Then

See Also

ASPxDataWebControl Class

ASPxDataWebControl Members

DevExpress.Web Namespace