SMART datagrid v.1 > Classes > GridRowStyles

Back  Forward

DataLudi.GridRowStyles.setRow  method

It sets Style Set about a specific data row. 

This style will be applied to all data cells which have been contained in the range of this data row. In addition, if do not specify styles parameter, it will remove the existing style setting which has been set about row

function setRow (row: Integer, styles: Object|GridStyles);
Returns
Void
Parameters
row - Integer. required.
styles - Object|GridStyles.
Code -1
    grid.body().rowStyles()
    .setRow(10, { background: '#ff0000' })
    .setRow(11, { background: '#ff0000' });
    
    // Remove the existing setting.
    grid.body().rowStyles().setRow(10);
See Also
setRange
clearRows
clearRanges
assign
rowStyles
Examples
Row Styles