# EditDataRelationsDialog Class

> The EditDataRelationsDialog class allows the user to add or remove data relations to or from the current data source. The EditDataRelationsDialog is a modal dialog box which must be shown with the EditDataRelationsDialog.ShowDialog method.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.Windows.Forms`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.Windows.Forms.dll` from the setup
- **Inherits:** `System.Windows.Forms.Form` › `TXTextControl.DocumentServer.Windows.Forms.HighDpiForm`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.Windows.Forms > EditDataRelationsDialog Class
- **602 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/editdatarelationsdialog/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/editdatarelationsdialog/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/editdatarelationsdialog/llms-full.txt

---

### Description

The EditDataRelationsDialog class allows the user to add or remove data relations to or from the current data source. The EditDataRelationsDialog is a modal dialog box which must be shown with the `EditDataRelationsDialog.ShowDialog` method.

### Syntax

```csharp
public class EditDataRelationsDialog : HighDpiForm
```

```vbnet
Public Class EditDataRelationsDialog
    Inherits HighDpiForm
```

### Examples

The following example creates an Edit Data Relations Dialog instance and configures its allow transparency setting for a document workflow.

```csharp
using TXTextControl.DocumentServer.Windows.Forms.EditDataRelationsDialog editDataRelationsDialog = new(new TXTextControl.DocumentServer.DataSources.DataSourceManager());
editDataRelationsDialog.AllowTransparency = true;
```

```vbnet
Dim editDataRelationsDialog As New TXTextControl.DocumentServer.Windows.Forms.EditDataRelationsDialog(New TXTextControl.DocumentServer.DataSources.DataSourceManager())
editDataRelationsDialog.AllowTransparency = True
```

---

## In This Section

- [EditDataRelationsDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/editdatarelationsdialog/constructor/llms-full.txt): Creates a EditDataRelationsDialog object for the specified DocumentServer.DataSources.DataSourceManager.

---

## Nearby

- **Previous:** [DataSourceExtractionDialog.SelectedTable Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/datasourceextractiondialog/selectedtable-property/llms-full.txt)
- **Next:** [EditDataRelationsDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/editdatarelationsdialog/constructor/llms-full.txt)
