Skip to main content

columns

specifies the configuration of grid columns

columns?: ICol[];

Example

var grid = new dhx.Grid("grid_container", {    columns: [        { width: 100, id: "a", header: [{ text: "#" }] },        { width: 100, id: "b", header: [{ text: "Title" }] },        { width: 200, id: "c", header: [{ text: "Name" }] },        { width: 200, id: "d", header: [{ text: "Address" }] }    ],    data: dataset});

Each column object may contain a set of properties. You will find the full list of the configuration properties of a Grid column here.