Disable Grid Column

Disable a grid column
function disableGridColumn(gridId, gridColumnId) {
  let gridRows = $("#" + gridId).getNumberRows();
  
    for (i = 1; i <= gridRows; i++) {
        $("#form\\[" + gridId + "\\]\\[" +i+ "\\]\\[" + gridColumnId + "\\]").attr("disabled", true);
        
    }

}