SMART datagrid v.1 > Classes > CellIndex
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.
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('');
}