Set the contents of each cell in the grid. It is an error to call either setColHeaders() or setRowHeaders() with different sizes than those in the given array. Optionally, LUSAS can automatically duplicate the first row (or the first column, or both) of the given data into the grid header cells. This is consistent with the LUSAS Print Results Wizard and allows the user to conveniently copy and paste the data with the header information. It is an error to choose to do this, and also to specify the header information using setColHeaders() (or setRowHeaders(), as appropriate)
| tabName | string | The name of the tab to modify |
| data | array of variants | The contents of the cells |
| doColHeaders | optional boolean | If true (the default), the first row of data will be copied into the column headers. If false, the headers must be separately specified |
| doRowHeaders | optional boolean | If true (the default), the first column of data will be copied into the row headers. If false, the headers must be separately specified |
| allowSort | optional boolean | If true (the default), the end user is allowed to sort the data using a context menu. If false, the sort UI is disabled |
| Return value | none |
Back to LPIGridWindow
Back to Overview