SMART datagrid v.1 > Classes > GridBody

Back  Forward

DataLudi.GridBody.fixedCellStyles  property

The default Style Set which is used in drawing all data cells included in fixed area. 

Basically, the value specified in this style set is applied to style properties which are not specified in styles of DataColumn including data cell. Later, dynamic style specified in rowDynamicStyles and cellDynamicStyles will be applied. In addition, the cell included in non-fixed area uses style values specified in cellStyles preferentially. 

It draws the data row before drawing individual data cells, and will apply style properties specified by rowStyles and rowRangeStyles

Getter
function fixedCellStyles(): GridStyles
Setter
function setFixedCellStyles(value: Object|GridStyles)
Code -1
    grid.setBody({
        fixedCellStyles: {
            background: '#10ff0000',
            foreground: '#880000'
        }
    });
    
    // or, when loading style sheet in grid level,
    grid.loadStyles({
        body: {
            fixedCell: {
                background: '#10ff0000',
                foreground: '#880000'
            }
            cell: {
            },
            ...
        }
        ...
    });
See Also
celltyles
rowStyles
rowRangeStyles
rowDynamicStyles
cellDynamicStyles
Rendering Performance Improvement
GridStyles
Examples
HelloGrid
Row Styles