# IDataRowAdapter Interface

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Interface
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl.DocumentServer.DataSources > IDataRowAdapter Interface
- **581 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/idatarowadapter/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/idatarowadapter/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/idatarowadapter/llms-full.txt

---

### Description

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

### Syntax

```csharp
public interface IDataRowAdapter
```

```vbnet
Public Interface IDataRowAdapter
```

### Examples

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

```csharp
Console.WriteLine($"Item: {iDataRowAdapter["Quarterly report"]}");
Console.WriteLine("IData Row Adapter is ready for use.");
```

```vbnet
Console.WriteLine($"Item: {iDataRowAdapter.Item("Quarterly report")}")
Console.WriteLine("IData Row Adapter is ready for use.")
```

---

## In This Section

- [IDataRowAdapter.GetChildRows Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/idatarowadapter/getchildrows-method/llms-full.txt): Returns the data of a child relation with a given name as an array of IDataRowAdapter instances.
- [IDataRowAdapter.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/idatarowadapter/item-property/llms-full.txt): The indexer of the IDataRowAdapter interface returns the content of the row's column with the given name.
- [IDataRowAdapter.Table Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/idatarowadapter/table-property/llms-full.txt): Gets the table the data row belongs to as an instance of a class implementing the IDataTableAdapter interface.

---

## Nearby

- **Previous:** [FieldDisplayMode Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/fielddisplaymode/enumeration/llms-full.txt)
- **Next:** [IDataRowAdapter.GetChildRows Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/idatarowadapter/getchildrows-method/llms-full.txt)
