title: yii2 \kartik\grid\CheckboxColumn
body: <p>I have added a check box column in my yii2 grid and created a button that can delete all selected values. However in my action col i have made it possible that the delete icon only shows dependant as follows. </p>
  
  <p>'delete' => function ($model, $key, $index) {</p>
  
  <pre><code>/* add public function in model i,e GetstopDelete*/
  
  if(empty($model-&gt;stopDelete))
  return true;
  else
  return $model-&gt;stopDelete == 1 ? false : true;
  }
  
  
  },
  </code></pre>
  
  <p>BUT, how to i hide the cell of the check box based on same parameters as I do not want the check box available if you cannot delete the row?</p>
  
  <p>I am using 
  <a href="http://demos.krajee.com/grid#checkbox-column" rel="nofollow noreferrer">http://demos.krajee.com/grid#checkbox-column</a> 
  and
  <a href="http://www.yiiframework.com/doc-2.0/yii-grid-checkboxcolumn.html" rel="nofollow noreferrer">http://www.yiiframework.com/doc-2.0/yii-grid-checkboxcolumn.html</a></p>