如何删除kartik gridview中的id(#)列?
['class' => 'kartik\grid\SerialColumn'],
答案 0 :(得分:3)
删除这一行gridview
['class' => 'yii\grid\SerialColumn']
答案 1 :(得分:2)
从'列中删除以下行' => []数组
[
'class' => '\kartik\grid\SerialColumn',
],