'columnDefs': [ { "targets": 0, // your case first column "className": "text-center", "width": "4%" }, { "targets": 2, "className": "text-right", }],