SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.fitRowHeight  method

Change the height of data row which has been specified by row to an optimized value. 

It can be changed only when column group of vertical layout which has more than one child column is not contained and DisplayOptions.variableRowHeight is specified as true. And, when DisplayOptions.rowResizable or fixedRowResizable is true, if double click bottom border of RowIndicator of each row, this function will be called internally. 

In row, you can directly specify Row Index or Row Object of integer type. 

function fitRowHeight (row: Integer|GridRow, minHeight: Integer, maxHeight: Integer);
Returns
Void
Parameters
row - Integer|GridRow. required.
minHeight - Integer.
maxHeight - Integer.
Code -1
    for (var i = 0; i < 10; i++) {
        grid.fitRowHeight(i, 10, 100);
    }
See Also
setRowHeight
DisplayOptions.variableRowHeight
ColumnGroup.layout
RowIndicator
Examples
Row Heights