Products Technologies Demo Docs Blog Support Company

Using Database Bound Fields in TX Text Control .NET

In a mail merge process, the direction of data is one-way. But when using the visual controls of TX Text Control to complete a form or to create an invoice where the data must be updated in a database, two-way data direction is required. To keep the TX Text Control internal TextFields or ApplicationFields as flexible as possible, they do not contain a DataSource property. However, the update process is very easy: In the TextFieldChanged event, the DataSet is updated. Then all fields are…

Using Database Bound Fields in TX Text Control .NET

In a mail merge process, the direction of data is one-way. But when using the visual controls of TX Text Control to complete a form or to create an invoice where the data must be updated in a database, two-way data direction is required.

To keep the TX Text Control internal TextFields or ApplicationFields as flexible as possible, they do not contain a DataSource property. However, the update process is very easy:

  1. In the TextFieldChanged event, the DataSet is updated.
  2. Then all fields are updated with the new changed DataSet.

This way ensures that other fields with the same name will be updated with the actual changed text. The following screencast illustrates a sample application that shows this update process.

Get Adobe Flash player

Test it on your own and download the C# project below.

Download: tx_bound_fields.zip

Visual Studio 2008 and at least a TX Text Control .NET for Windows Forms 16.0 trial version is required.

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Related Posts

Windows FormsWPF.NET

Create a Table of Contents in Windows Forms using C#

This article explains how to create a table of contents in Windows Forms using the ribbon or programmatically. Creating a table of contents is required to organize large documents.


ASP.NETWindows FormsWPF

Official TX Text Control .NET Sample Applications Are Now Hosted on GitHub

This article gives a quick overview of the new repositories, their structure and our plans for the future.


ASP.NETJavaScriptDocument Editor

Detect Toggle Button Changes Using a MutationObserver

This article shows how to detect changes of toggle buttons in the ribbon of the web editor using a MutationObserver. The state of a toggle button in the ribbon visualizes the state of a certain…


Windows FormsList.NET

Two Ways to Restart Numbered Lists in TX Text Control

In TX Text Control, numbered lists are continued by default and need to be reset when required. There is more than one way if you want to restart numbered lists in a document. In this article, two…


Windows FormsSampleShortcuts

Zoom Tricks: Disabling CTRL + MOUSE WHEEL and More

This article shows how to disable CTRL + MOUSE WHEEL, implement zooming with keyboard and reset the zoom factor to its default value.