SMART datagrid v.1 > Classes > GridBase
GridBody object which manages the properties of grid body area displaying data cells.
Style Set of all columns inherits Style Set being set in this object. In other words, the property which is not specified in column style will inherit the value set in cellStyles. GridBody object will be created when create the grid, and if specify values through this property, the properties of this object will be changed.
// Set options when initialize the grid.
grid.setOptions({
header: {
},
footer: {
},
body: {
cellStyles: {
fontSize: 12
}
}
});
// Specify the property in grid level.
grid.setBody({
cellStyles: {
fontSize: 12
}
});
// Can also specify in GridBody level.
grid.body().setStyles({
cellStyles: {
fontSize: 12
}
});