Creating DataGrids
To create an application with DataGrid, proceed as follows:
-
Create a separate view for the DataGrid that you can later link to other functional areas in your application.
-
Change the type of ROOTUIELEMENTCONTAINER to DataGrid by choosing Swap Root Element in the context menu.
-
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.
-
Define how you want the data to be visualized.
Use aggregation TEMPLATES to insert DataGridCells into the DataGridSegments.
Insert images, icons, or CellDecorators (optional).
-
Define the cell editors.
For more information, see Cell editors in the DataGrid.
-
Define events for the cell editors (optional).
-
Define events for the DataGridCell (optional).
-
Create the context nodes in which the data is to be held. You can program this dynamically in hook method WDDOMODIFYVIEW.
-
Bind property dataSource of the DataGridSegments to the context nodes. You can program this dynamically in hook method WDDOMODIFYVIEW.
-
Fill the context nodes with data.