SMART datagrid v.1 > Classes > DisplayOptions

Back  Forward

DataLudi.DisplayOptions.fixedColumnCount  property

The number of fixed columns. 

The cells of fixed column will be excluded from horizontal scroll, and if EditOptions.fixedColumnEditable is not true, it will not be able to edit by default. 

Defaults to 0.

Getter
function fixedColumnCount(): Integer
Setter
function setFixedColumnCount(value: Integer)
Code -1
    grid.setOptions({
        display: {
            fixedColumnCount: 3,
            fixedRowCount: 2
        }
    });
Code -2
    grid.setDisplayOptions({
        fixedColumnCount: 3,
        fixedRowCount: 2
    });
Code -3
    grid.displayOptions().setFixedColumnCount(3);
See Also
fixedRowCount
EditOptions.fixedColumnEditable
Examples
Fixed Columns