How can i disable checkboxes in datatable in each rows

Hello. I have a question.
I know how to apply css to a row that meets certain conditions when I do onbeforeload of datatables.
But how do I search the input boxes inside?

For example, $ (“gridId”).find(“input[type=‘checkbox’]”)attr(“disabled”, true")
I want to apply the event like this, but I want to know how to navigate the element by row.

Please answer me.