SMART datagrid v.1 > Classes > GridColumn

Back  Forward

DataLudi.GridColumn.dataRoot  property

The column (group) being displayed on the top of grid Body area in which displays data cells among top Column Groups including this column. 

In the case of top column itself, it will return the column itself. 

When it is BLOCK or COLUMN selection mode, selection minimum unit will become dataRoot. 

Getter
function dataRoot(): GridColumn

 

The column displayed in red box is dataRoot. Since CustomerGroup is the top column which includes all columns in blue box, CustomerGroup column will become dataRoot. 

Code -1
    var col = grid.focusedColumn();
    if (col.dataRoot() === col) {
        col.setWidth(200);
    }
See Also
isDataRoot
root
parent
group
ColumnGroup
GridBase.focusedColumn
Examples
Column Grouping
Column Layouts
Selection