yii2 grid header align code example Example: yii2 gridview header text align center 'headerOptions' => ['style' => 'text-align: center !important;'],