TX Text Control .NET Server

LoadDataSet Method

Method|Introduced in 24.0
Namespace
TXTextControl.Web.MVC
Package
TXTextControl.Web as TXTextControl.Web.DocumentEditor.dll from nuget.org, the private NuGet feed or Text Control Offline Packages

Description

Loads a database which is used to create table and field name menu items in the mailings ribbon tab from an existing DataSet object.

Syntax

public TextControl LoadDataSet(DataSet dataSet);

Parameters

ParameterDescription
dataSet

Specifies a System.Data.DataSet object from which table and field names and existing data relations are loaded.

Return Value

A reference to the Web.MVC.TextControl instance to allow method chaining.

Examples

The following example uses TextControl.LoadDataSet in a document-processing workflow.

var result = textControl.LoadDataSet(new System.Data.DataSet());
Console.WriteLine(result);