title: Yii2 : Add empty row at the top of the table using kartik\gridview
body: <p>I'm trying to insert an empty row at the top of the table with the <a href="https://demos.krajee.com/grid" rel="nofollow noreferrer">yii2-kartik\gridview</a>, so that I can add custom components to each column.</p>
  
  <p>I would like the result to be as follows in the print:</p>
  
  <p><a href="https://i.stack.imgur.com/pDCIM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pDCIM.png" alt="enter image description here"></a>
  So far I've only managed to insert this line by adding the <code>filterModel</code>:</p>
  
  <pre><code>&lt;?php
      $gridViewPesquisaPonto = GridView::widget([
          'moduleId' =&gt; 'gridview',
          'dataProvider' =&gt; $pesquisaPontodataProvider,
          'filterModel' =&gt; true, // The table row containing the filters is configured here
          'layout' =&gt; "{items}{summary}{pager}",
          'captionOptions' =&gt; ['class' =&gt; 'text-wrap'],
          'options' =&gt; [
              'id' =&gt; 'grid-pontos-pesquisa',
          ],
          'columns' =&gt; [
              // ...
  </code></pre>
  
  <p>However, this line is exclusive for the use of filters implemented by the gridview. I would like to know a way to insert a line so that I can edit it freely (If you have the link to the documentation that contains this answer, please post in the answer, as I haven't found it yet).</p>