title: Yii2 GridView Customize Header Row
body: <p>In my view code I have this:</p>
  
  <pre><code>&lt;?= GridView::widget([
          'dataProvider' =&gt; $dataProvider,
          'columns' =&gt; [
              ['class' =&gt; 'yii\grid\SerialColumn'],
               ['label' =&gt; 'Training Score',
                 'attribute' =&gt; 'scoreTraining',
                 'format' =&gt; ['decimal',2],
               ],
               ['label' =&gt; 'Exam Score',
                 'attribute' =&gt; 'scoreExam',
                 'format' =&gt; ['decimal',2],
               ],
          ],
      ]);
  </code></pre>
  
  <p>Normally the header name will be "Training Score" and "Exam Score"</p>
  
  <p>Is that possible in yii2 gridview to customize the header row? so that my header row looks like in 2 line..</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table border=1&gt;
    &lt;tr&gt;&lt;th&gt;Training &lt;br&gt; Score&lt;/th&gt;&lt;th&gt;Exam &lt;br&gt; Score&lt;/th&gt;&lt;/tr&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>