# DataColumnInfo Class

> The DataColumnInfo class provides basic information about a table column in a data source.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXDocumentServer.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl.DocumentServer.DataSources > DataColumnInfo Class
- **536 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datacolumninfo/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datacolumninfo/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datacolumninfo/llms-full.txt

---

### Description

The DataColumnInfo class provides basic information about a table column in a data source.

### Syntax

```csharp
public class DataColumnInfo
```

```vbnet
Public Class DataColumnInfo
```

### Examples

The following example includes the caption value from a Data Column Info object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Caption: {dataColumnInfo.Caption}");
Console.WriteLine("Data Column Info is ready for use.");
```

```vbnet
Console.WriteLine($"Caption: {dataColumnInfo.Caption}")
Console.WriteLine("Data Column Info is ready for use.")
```

---

## In This Section

- [DataColumnInfo.Caption Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datacolumninfo/caption-property/llms-full.txt): Gets a descriptive or friendly column name. Returns the same value as the ColumnName property if not set explicitly.
- [DataColumnInfo.ColumnName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datacolumninfo/columnname-property/llms-full.txt): Gets the column name.
- [DataColumnInfo.DataTableInfo Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datacolumninfo/datatableinfo-property/llms-full.txt): Gets an object of type DataTableInfo which represents the table this column belongs to.
- [DataColumnInfo.DataType Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datacolumninfo/datatype-property/llms-full.txt): Gets the data type of this table column.

---

## Nearby

- **Previous:** [BlockTemplateType Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/blocktemplatetype/enumeration/llms-full.txt)
- **Next:** [DataColumnInfo.Caption Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datacolumninfo/caption-property/llms-full.txt)
