officefileapi-devexpress-dot-spreadsheet-dot-iworkbook-c66cad71.md
Specifies the member of the mail merge data source.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
string MailMergeDataMember { get; set; }
Property MailMergeDataMember As String
| Type | Description |
|---|---|
| String |
A String value specifying the data member name.
|
Set the MailMergeDataMember property of the mail merge template workbook after assigning a dataset that contains multiple data tables to the IWorkbook.MailMergeDataSource property. See the How to: Perform a Mail Merge example.
The MailMergeDataMember property is irrelevant when the mail merge data source is a data table or a data view.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MailMergeDataMember 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.
winforms-spreadsheet-mail-merge/CS/DXApplication1/Form1.cs#L25
template.MailMergeDataSource = dataSet;
template.MailMergeDataMember = "Categories";
}
winforms-spreadsheet-mail-merge/VB/DXApplication1/Form1.vb#L25
template.MailMergeDataSource = dataSet
template.MailMergeDataMember = "Categories"
End Sub
See Also
Mail Merge in WinForms Spreadsheet Control