I have to add a column checkbox based on a column from DB. enter image description here

Checkbox column is appearing in the grid, but I can't change(grid doesn't change after save) the value of the checkbox and it always stays unchecked... How to achieve it?

  • Can you try to change to 'renderer' => \Magento\Backend\Block\Widget\Grid\Column\Renderer\Checkbox::class? – Sondre Feb 28 at 12:19
  • You also need to add a value for type when using Checkbox – Sondre Feb 28 at 12:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.