SMART datagrid v.1 > Classes > GridColumn
在包含这个列的顶级列组中,显示数据单元格的网格内容的顶级列(组)。
如果是本身为顶级列的情况,就会返回列本身。
当BLOCK或COLUMN选择模式时,选择最小单位将会成为dataRoot。
显示为红框的列是dataRoot。因为CustomerGroup是包含被包含在篮框的所有列的顶级列,所以CustomerGroup列将会是dataRoot。
var col = grid.focusedColumn();
if (col.dataRoot() === col) {
col.setWidth(200);
}