SMART datagrid v.1 > Classes > CellIndex

Back  Forward

DataLudi.CellIndex.dataField  property

The Index of data field which is connected to the column when the column corresponding to the cell of this location is Data Column

Else, it will return -1. 

Defaults to -1.

Getter
function dataField(): Integer
Code -1
    var idx = grid.focusedIndex();
    var fld = idx.dataIndex();
    var row = idx.getDataIndex(grid);
    
    if (fld >= 0 && row >= 0) {
        $('#value').val(ds.getValue(row, fld));
    } else {
        $('#value').val('');
    }
See Also
column
rowIndex
getDataIndex
DataColumn
DataField.index
GridDataSet.getValue
Examples
Focused Cell