SMART datagrid v.1 > Classes > DataColumn

Back  Forward

DataLudi.DataColumn.emptyValue  property

如果包含在列中的单元格的值为空字符串或空白,就会被替代显示的值。 

Getter
function emptyValue(): *
Setter
function setEmptyValue(value: *)
Code -1
    var columns = [{
            name: "col1",
            fieldName: "field1",
            width: "100",
            emptyValue:"empty value"
        }, 
        ......
    }];
Code -2
    var col = grid.focusedIndex().column;
    col.setEmptyValue("empty Value");
See also
CellEditor.emptyValue
Examples
HelloGrid