The DataGrid documentation describes the Columns parameter as follows:
The DataGrid Columns is an array object, which element is an array too. The element of element array is a config object, which defines every column field.
Is there another way to describe this? I'm having difficulty understanding why it's a nested array construct.
What sort of grid does the example in the documentation produce? Does this have something to do with the expanded rows feature?
columns:[[
{field:'itemid',title:'Item ID',rowspan:2,width:80,sortable:true},
{field:'productid',title:'Product ID',rowspan:2,width:80,sortable:true},
{title:'Item Details',colspan:4}
],[
{field:'listprice',title:'List Price',width:80,align:'right',sortable:true},
{field:'unitcost',title:'Unit Cost',width:80,align:'right',sortable:true},
{field:'attr1',title:'Attribute',width:100},
{field:'status',title:'Status',width:60}
]]