# IDataTableAdapter Interface

> The IDataTableAdapter interface contains properties and methods implemented by data table instances used in the BlockMerging event.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Interface
- **Introduced:** 23.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 > IDataTableAdapter Interface
- **572 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/llms-full.txt

---

### Description

The IDataTableAdapter interface contains properties and methods implemented by data table instances used in the [BlockMerging](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge/blockmerging-event/llms-full.txt) event.

### Syntax

```csharp
public interface IDataTableAdapter
```

```vbnet
Public Interface IDataTableAdapter
```

### Examples

The following example includes the table name value from an IData Table Adapter object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Table Name: {iDataTableAdapter.TableName}");
Console.WriteLine("IData Table Adapter is ready for use.");
```

```vbnet
Console.WriteLine($"Table Name: {iDataTableAdapter.TableName}")
Console.WriteLine("IData Table Adapter is ready for use.")
```

---

## In This Section

- [IDataTableAdapter.ChildTableNames Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/childtablenames-property/llms-full.txt): Returns the names of the child relations in this table as a string array.
- [IDataTableAdapter.ColumnNames Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/columnnames-property/llms-full.txt): Returns the table's column names as a string array.
- [IDataTableAdapter.Rows Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/rows-property/llms-full.txt): Returns the table's data as an array of objects implementing the IDataRowAdapter interface.
- [IDataTableAdapter.TableName Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/tablename-property/llms-full.txt): Returns the name of the table.

---

## Nearby

- **Previous:** [IDataRowAdapter.Table Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatarowadapter/table-property/llms-full.txt)
- **Next:** [IDataTableAdapter.ChildTableNames Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/idatatableadapter/childtablenames-property/llms-full.txt)
