SMART datagrid v.1 > Classes > DataSet

Back  Forward

DataLudi.DataSet.getFieldIndexEx  method

Return DataField object which is corresponding to parameter field

If field is string, it will compare with field name to find it, and if it is number, it will return the field of the corresponding location. If ignoreCase is true, it will not be case sensitive. If no corresponding field, it will return null

function getFieldIndexEx (field: String|Integer, ignoreCase: Boolean);
Returns
Void
Parameters
field - String|Integer. required.
ignoreCase - Boolean. Defaults to false.
Code -1
    var field = dataset.getFieldIndexEx('quantity');
    field.setDatetimeFormat('yyyy-MM-dd');
See Also
getFieldIndex
getField
fieldName
Examples
Hello Grid