How to present a boolean type cell value as a checkbox

Hi

I have a boolean cell named ‘is_active’, how to present its value as a checkbox?, so if the value is true then it checked or unchecked, I try below, but it doesn’t work

             $('#datagrid').DataTable({
                    searching: false, paging: false, info: false,
                    data: data.filter(function (item) {
                        return item.selected == true;
                    }),
                    'columnDefs': [
                        {
                            'targets': 1
                        }
                    ],
                    'select': {
                        'style': 'multi'
                    },
                    columns: [
                        { data: 'agent_code', className: 'align-middle' },
                        { data: 'is_active', className: select-checkbox' },
                    ]
                });
            }