SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.setRowHeights  method

Specify the height of data rows specified by rows at the same time with the same size. 

If specify newHeight as a non-numerical value such as undefined, it will be restored to Default Row Height of grid. You can change the height of one row by calling setRowHeight

Only if do not contain the column group of vertical layout which has more than one child column and DisplayOptions.variableRowHeight is true, the changed value will be reflected on the screen. In addition, if specify DisplayOptions.rowResizable or fixedRowResizable as true, the user can drag the bottom border of row in RowIndicator area with mouse to change the height of an individual row. 

function setRowHeights (rows: [Integer|GridRow], newHeight: Integer): this;
Returns
this
Parameters
rows - [Integer|GridRow].
The row index or Grid Row object array of which height will be changed. If do not specify this value, it will change the height of all rows.
newHeight - Integer.
The height of row. If specify newHeight as a value which is not a number like undefined, it will be restored as Default Row Height of grid.
Code -1
    // Change the height of checked rows in a batch.
    grid.setRowHeights(grid.getCheckedRows(), 45);
See Also
setRowHeight
getRowHeight
fitRowHeight
clearRowHeights
DisplayOptions.variableRowHeight
DisplayOptions.rowResizable
DisplayOptions.fixedRowResizable
Examples
Row Heights