Add Data Grid |
Top Previous Next |
The Data Grid control offers the ability to output information about elements in a package (it is NOT recursive) or an EA search in a table, with the ability to make changes to the displayed fields as well as add new elements by entering data in a new row at run time.
When you select "Add Data Grid" you will be presented with a dialog to enter information that defines the content to be displayed as illustrated below.
To define a Data Grid Control for elements:
Note: we have provide the option to display a set of stereotyped elements - which can be selected from the list of available stereotypes; the list used is the CSV list shown in the Stereotypes box
In addition, you can:
Modifying Data Definition
You can edit the datagrid definition and using the right click context menu on a selected data row move the row (which will become a column) up or down in the order, as well as delete any unwanted rows.
Look and feel of run time Datagrid
To help get an idea of what the datagrid will look like we have included a table at the bottom of the page. To use this when you have completed the datagrid table definition:
Display results from an EA Search
To display the results of an EA Search select "EA Search" from the MDG dropdown. When selected the the display will change to allow the selection of the required search from a list of searches found in the current model. The remaining definition of the Datagrid is identical to that described above.
Note: At present the search must exist in the model in both the designers model and the model in which the form is used.
Display class attributes in the datagrid
Check out the DataGrid reference for more information on using this control.
|