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:
- Define the data structure.
- Define the table column information in a KColl data tableRow,
it can be used as submit dataName for single selection mode. Besides typed data, you could also define a KColl data ColumnData as
a child to submit column dataName. Please be cautious:
- This KColl cannot contain any IColl
- Define the list data tableRowIColl which
refer to the KeyedCollection data tableRow,
it can be used as submit dataname for multiple selection mode.

- 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.
Note: You could also define a new
KColl with the same name and children data as tableRow.
Especially, when there is a KColl as child data, this KColl should
contain the same children data, too.
- Specify tableData as dataNameForList.
- If selectionMode issingle, select tableData as
dataName.
- If selectionMode is multiple, select tableRowIColl as
dataName.
- Specify Data binding for the column.
- Specify ColumnDataas Data Name
- Advanced data binding properties for the column. According
to Editable or not, there are different widgets for selection. You
need to specify the related properties for selected widget.
Results
Data is bound to the table widget.