SMART datagrid v.1 > Classes > DataColumn

Back  Forward

DataLudi.DataColumn.dataFieldName  property

连接在这个列的DataField的名称。 

可以通过dataIndex,了解字段索引。 通过fieldNamefieldIndex属性,指定字段连接。 

Getter
function dataFieldName(): String
Code -1
    $('#getFieldName').click(function () {
        var col = grid.focusedIndex().column;
        if (col) {
            alert(col.dataFieldName());
        }
    });
See Also
fieldName
fieldIndex
dataIndex
DataField.index
Examples
Hello Grid