FormBuildControl.addDataField Method

Adds a control to the control, based on the specified data field information.

Syntax

public FormBuildControl addDataField(
    int dataSourceId, 
    FieldId fieldId, 
   [int arrayIndex])

Run On

Called

Parameters

  • dataSourceId
    Type: int
    An integer value that indicates the ID of the data source that the data field is bound to.
  • arrayIndex
    Type: int
    An integer value that indicates the index of the data field type; optional.

Return Value

Type: FormBuildControl Class
A FormBuildControl object that represents the newly added control.

Remarks

The type of control that should be added is determined automatically, based on the specified data field information.

The arrayIndex parameter has a default value of 1 when a value is not specified, so that the first index is assumed.

See Also

Reference

FormBuildControl Class