aspnet-devexpress-dot-web-dot-aspxdatawebcontrol-8ab1268d.md
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
[DefaultValue("")]
public virtual string DataMember { get; set; }
<DefaultValue("")>
Public Overridable Property DataMember As String
| Type | Default | Description |
|---|---|---|
| String | String.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.
|
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
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
If webDataSource IsNot Nothing Then
InitDataSource(webDataSource, dataGrid.DataMember)
ElseIf listDataSource IsNot Nothing Then
See Also