columns

The columns of the grid initialized from the columns option. Every column from the columns collection has the same fields as the corresponding columns option.

$("#grid").shieldGrid({
    dataSource: {
        data: [
            { ID: 1, name: "name1" },
            { ID: 2, name: "name2" }
        ]
    },
    columns: [
        { field: "ID" },
        { field: "name" }
    ],
});

var grid = $("#grid").swidget();
for (var i = 0; i < grid.columns.length; i++) {
    console.log(grid.columns[i].field); // displays "ID" and then "name"
}