Creating DataGrids

To create an application with DataGrid, proceed as follows:

  1. Create a separate view for the DataGrid that you can later link to other functional areas in your application.

  2. Change the type of ROOTUIELEMENTCONTAINER to DataGrid by choosing Swap Root Element in the context menu.

  3. From context menu, insert DataGridSegments, DataGridSegmentCols, and DataGridSegmentRows into the DataGrid.

    The number of possible segments in a DataGrid is the sum of segment columns and rows.

    Define the position of the columns and rows for each segment.

  4. Define how you want the data to be visualized.

    Use aggregation TEMPLATES to insert DataGridCells into the DataGridSegments.

    Insert images, icons, or CellDecorators (optional).

  5. Define the cell editors.

    For more information, see Cell editors in the DataGrid.

  6. Define events for the cell editors (optional).

  7. Define events for the DataGridCell (optional).

  8. Create the context nodes in which the data is to be held. You can program this dynamically in hook method WDDOMODIFYVIEW.

  9. Bind property dataSource of the DataGridSegments to the context nodes. You can program this dynamically in hook method WDDOMODIFYVIEW.

  10. Fill the context nodes with data.