columns

Represent columns configuration object. An array of JavaScript objects or strings. The array is interpreted as collection of column object, strings are interpreted as the field to which the column is bound. The grid will create a column for every item of the array.

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