如何删除id#column kartik gridview

时间:2016-09-16 05:44:49

标签: yii2 yii2-advanced-app yii-extensions

如何删除kartik gridview中的id(#)列?

['class' => 'kartik\grid\SerialColumn'], 

2 个答案:

答案 0 :(得分:3)

删除这一行gridview

['class' => 'yii\grid\SerialColumn']

答案 1 :(得分:2)

'列中删除以下行' => []数组

  [
     'class' => '\kartik\grid\SerialColumn',
  ],