SMART datagrid v.1 > Classes > DataField
When dataType is TEXT, if specify this value as greater than 0, the string which is saved as the value of this field will be limited within the specified length.
Defaults to 0.
var field = dataSet.getField(0);
field.setLength(20);