# TextControl.LoadDataSet Method

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.Web.MVC`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC > TextControl.LoadDataSet Method
- **375 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/loaddataset-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/loaddataset-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/loaddataset-method/llms-full.txt

---

### 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

```csharp
public TextControl LoadDataSet(DataSet dataSet);
```

```vbnet
Public Function LoadDataSet(dataSet As DataSet) As TextControl
```

### Parameters

| Parameter | Description |
|---|---|
| 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.

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

```vbnet
Dim result = textControl.LoadDataSet(New System.Data.DataSet())
Console.WriteLine(result)
```

---

## Nearby

- **Previous:** [TextControl.LoadDataFromModel Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/loaddatafrommodel-method/llms-full.txt)
- **Next:** [TextControl.LoadText Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrol/loadtext-method/llms-full.txt)
