MailMergeSettingsBuilder.DataSource(DataTable) Method
Sets a data source for Rich Text Editor’s mail merge functionality.
Namespace: DevExpress.AspNetCore.RichEdit
Assembly: DevExpress.AspNetCore.RichEdit.v24.2.dll
Declaration
public MailMergeSettingsBuilder DataSource(
DataTable data
)
Parameters
Name | Type | Description |
---|---|---|
data | DataTable | The MailMerge data source. |
Returns
Type | Description |
---|---|
MailMergeSettingsBuilder | An object that can be used to further configure the MailMerge settings. |
Remarks
@(Html.DevExpress().RichEdit("richEdit")
.Open("Documents/MailMergeTemplate.docx")
.MailMerge(m => m
.DataSource(SampleData.GetDataTable("Customers"))
.ViewMergedData(true)
.ActiveRecord(0)
)
)
See Also