Bind Form Data with Controls

In forms, data and controls are decoupled. You can define your controls and data independently and then connect the controls to the data using the binding property.

How Auto Binding Works?

If you open the Properties pane of a form, you'll notice that the Auto Binding property is selected by default. When the auto binding property is enabled, data attributes are automatically created and are linked to the controls as you drag and drop controls from the palette onto the canvas. The data attributes are listed in the Data pane.

Note:

The name of the binding in the Binding field is the same as the name of the control to which it is linked when you use auto-binding.

Create Data Attributes Manually and Link Them to Controls

If you disable the Auto Binding field, then you must create data attributes in the Data pane and link them to every unbound control using the Binding field in the control's Properties pane.

  1. In the form's Data pane, click Add.
  2. In the Create Attribute window, enter a name.

    Note:

    An attribute name can only start with a lower case letter and can only contain letters, digits, and underscores.
  3. Under Data Type, select Simple and then choose a data type from the drop-down menu.
  4. Click Create.
  5. Drag and drop a control from the palette onto the form canvas.
  6. Select the control and click the General tab in the Properties pane.
  7. In the Binding field, specify the attribute that you created in the Data pane.

    The attribute is successfully linked to the control.