# DataSourceManager.LoadDataTable Method

> Loads a System.Data.DataTable object as a data source.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.DataSources > DataSourceManager.LoadDataTable Method
- **356 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/loaddatatable-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/loaddatatable-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/loaddatatable-method/llms-full.txt

---

### Description

Loads a `System.Data.DataTable` object as a data source.

### Syntax

```csharp
public void LoadDataTable(DataTable dataTable);
```

```vbnet
Public Sub LoadDataTable(dataTable As DataTable)
```

### Parameters

| Parameter | Description |
|---|---|
| dataTable | The `DataTable` object to use as a data source. |

### Examples

The following example uses Load Data Table in a focused Data Source Manager workflow. The created object is then available to the surrounding document workflow.

```csharp
dataSourceManager.LoadDataTable(new System.Data.DataTable());
Console.WriteLine("Data Source Manager is ready for use.");
```

```vbnet
dataSourceManager.LoadDataTable(New System.Data.DataTable())
Console.WriteLine("Data Source Manager is ready for use.")
```

---

## Nearby

- **Previous:** [DataSourceManager.LoadDataSourceConfig Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/loaddatasourceconfig-method/llms-full.txt)
- **Next:** [DataSourceManager.LoadJson Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/loadjson-method/llms-full.txt)
