SMART datagrid v.1 > Classes > GridRowStyles
It removes the specified styles and adds the style of each data row and each range at the same time.
grid.body().rowStyles().assign({
// Specify by each data row.
'0': { background: '#10ff0000' },
'1': { background: '#20ff0000' },
'2': { background: '#30ff0000' },
// You can specify by each range.
'rows': [{
'name': 'range01', // If specify name, you can remove it later or set it again.
'range': 'row % 2 == 1',
'styles': { background: '#080000ff'}
}]
});