SMART datagrid v.1 > Classes > DataColumn
index of DataField connected to this column.
It returns -1 if not connected to the field. And, field name can be known by dataFieldName. Field connection is specified by fieldName or fieldIndex property.
$('#getValue').click(function () {
var col = grid.focusedIndex().column;
if (col) {
if (col.dataIndex() < 0) {
alert('It is the column not connected to field.');
} else {
var v = ds.getValue(grid.focusedDataIndex(), col.dataIndex());
$('#value').val(v);
}
}
});