Binding data to a table widget

This section provides an example of how to bind data to a table widget.

Procedure

To bind data to a table widget, do the following steps:

  1. Define the data structure.
    1. Define the table column information in a KeyedCollection data tableRow, it can be used as submit dataname for single selection mode.

    2. Define the list data tableRowIColl which refer to the KeyedCollection data tableRow, it can be used as submit dataname for multiple selection mode.

    3. Define the list data tableDatawhich refer to the KeyedCollection data tableRow, it is the data structure of the whole table data. You can initialize or change the table data in the operation.

  2. Specify the properties for the table.
    1. Specify tableData as dataNameForList. In the following table, selectionMode issingle, so select tableData as dataName. If selectionMode is multiple, tableRowIColl need to be defined for dataName.

    2. Specify column properties for the table.
      • Specify Standard properties for the column:

      • Specify advanced properties for the column. If the column is Editable, there are four widgets can be selected: CheckBox, Select, ComboBox, TextBox. If the column is not editable, there are two widgets for selection: Image and LabelFromList. Accordingly, you need to specify the related properties for selected widget.

Results

Data is bound to the table widget.