I’m sure this is beautiful if you are creating a Top 40 list, however in my opinion in most cases it is both useless and ugly.
How to remove this column?
Simple. Remove:
['class' => 'yii\grid\SerialColumn'],
I’m sure this is beautiful if you are creating a Top 40 list, however in my opinion in most cases it is both useless and ugly.
How to remove this column?
Simple. Remove:
['class' => 'yii\grid\SerialColumn'],
Yes if you do not want a grid column to be displayed … its simple - DO NOT add it to the columns array in the GridView widget.
If you do not want SerialColumn with # do not include this:
['class' => 'yii\grid\SerialColumn']
If you do not want ActionColumn, do not include this:
['class' => 'yii\grid\ActionColumn']
IMHO… as to who requires what column, is a use case best left to developers.