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 first row of data will be copied into the column headers |
doRowHeaders | optional boolean | If true, the first column of data will be copied into the row headers |
Return value | none |
Back to LPIGridWindow
Back to Overview