The Grid control allows addons to display, and users to interact with, large sets of related data all at once.
AddRelation(DataTable table, string relationName, DataColumn parent, DataColumn child): This method is used to display master-detail relationships in a grid. The PrimaryTable property should be set first, and then AddRelation should be used to create the relationship between the PrimaryTable and any child tables. This is only necessary if the DataSet containing the PrimaryTable does not already have relationships defined.
Direction | Name | Description |
---|---|---|
input | table | The table that should be added as a child of the primary table. |
input | relationName | The name that should be used as a reference for this relationship (ie: FK_OrdersProducts) |
input | parent | The DataColumn from the parent table that should be used for identifying the relationship between a parent row and child rows. |
input | child | The DataColumn from the child table that should be used for identifying the relationship between child rows and their parent row. |