From Xojo Documentation

Property (As String )
aTextEdit.DataField = newStringValue
StringValue = aTextEdit.DataField

Supported for all project types and targets.

The field in the DataSource that the control is bound to.


Relevant only if the control is used in conjunction with a DataControl to display the contents of fields in a database table. It is assigned the name of a field (String) in the table referenced by the DataControl in the window.


This example specifies the field for the control.

Me.DataField = "Name"