# DataSourceManager.PossibleMergeFieldColumns Property

> Gets a DataColumnInfoCollection of DataColumnInfo objects representing the table columns which can be used as merge fields using the currently selected master table.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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.PossibleMergeFieldColumns Property
- **434 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/possiblemergefieldcolumns-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/possiblemergefieldcolumns-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/possiblemergefieldcolumns-property/llms-full.txt

---

### Description

Gets a [DataColumnInfoCollection](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfocollection/llms-full.txt) of [DataColumnInfo](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfo/llms-full.txt) objects representing the table columns which can be used as merge fields using the currently selected master table.

### Syntax

```csharp
public DataColumnInfoCollection PossibleMergeFieldColumns { get; }
```

```vbnet
Public ReadOnly Property PossibleMergeFieldColumns As DataColumnInfoCollection
```

### Examples

The following example iterates through the possible merge field columns collection and processes each data column info.

```csharp
foreach (TXTextControl.DocumentServer.DataSources.DataColumnInfo dataColumnInfo in dataSourceManager.PossibleMergeFieldColumns)
{
    Console.WriteLine(dataColumnInfo.Caption);
}
```

```vbnet
For Each dataColumnInfo As TXTextControl.DocumentServer.DataSources.DataColumnInfo In dataSourceManager.PossibleMergeFieldColumns
    Console.WriteLine(dataColumnInfo.Caption)
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [DataSourceManager.PossibleMergeBlockTablesChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/possiblemergeblocktableschanged-event/llms-full.txt)
- **Next:** [DataSourceManager.PossibleMergeFieldColumnsChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/possiblemergefieldcolumnschanged-event/llms-full.txt)
