title: How to change background of 1 row in Yii2 Gridview
body: <p>I'm working with Yii 2, and it's grid view to show information.</p>
  
  <p>Now, my problem is that whenever a user scans two identical serial numbers and/or mac addresses, it should highlight the row (change color to red), and show some error sign or whatever.</p>
  
  <p><strong>Screenshot:</strong>
  <img src="https://i.stack.imgur.com/jgMOe.png" alt="Current Grid View"></p>
  
  <p>What I want it to look like:</p>
  
  <p><img src="https://i.stack.imgur.com/CFbgd.png" alt="Desired Grid Highlighting"></p>
  
  <p>I'm new to Yii2 and don't exactly know how they do it with the grid view. I've been researching on this specific problem but couldn't find anything. </p>
  
  <p>Code for Gridview</p>
  
  <pre><code> &lt;?= GridView::widget([
      'id' =&gt; 'scan-batch-grid',
      'dataProvider' =&gt; $dataProvider,
      'columns' =&gt; [
          ['class' =&gt; 'yii\grid\SerialColumn'],
          ['class' =&gt; 'yii\grid\CheckboxColumn'],
          [
              'attribute' =&gt; 'product_ID',
              'value' =&gt; 'product.name'
          ],
          'SN',
          'MAC',
          [
              'class' =&gt; 'yii\grid\ActionColumn',
              'urlCreator' =&gt; function ($action, $model, $key, $index) {
                      return Url::to(['scan-batch/view',  'id' =&gt; $key, 'scan' =&gt; $model-&gt;scan_batch_ID]);
              },
              'buttons' =&gt; [
                  'update' =&gt; function ($url, $model, $key) {
                      return '';
                  },
                  'delete' =&gt; function ($url, $model, $key) {
                      return '';
                  },
              ],
          ],
      ],
  ]); ?&gt;
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>I only want to know how to change the color of only one row.</p>