<DataGrid
  rows={rows}
  columns={columns}
  getCellClassName={(params: GridCellParams<any, any, number>) => {
    if (params.field === 'city' || params.value == null) {
      return '';
    }
    return params.value >= 15 ? 'hot' : 'cold';
  }}
/>