SMART datagrid v.1 > Classes > DataField

Back  Forward

DataLudi.DataField.index  property

The location of this field within DataSet

If not contained in data set, it will return -1. When approach the field value of data set, it will use this location value. 

Defaults to -1.

Getter
function index(): Number
Code -1
    var field = dataSet.getFieldIndexEx('field1');
    if (field && field.index() >= 0) {
        $('#value')[0].value = dataSet.getValue(0, field.index());
    }
See Also
fieldName
dataType
DataSet
Examples
Grid Data Set Rows