SMART datagrid v.1 > Classes > CellIndex

Back  Forward

DataLudi.CellIndex.columnIs  method

If parameter columnName is the same as column or the name of column, it will return true

function columnIs (columnName: String|GridColumn, ignoreCase: Boolean): Boolean;
Returns
Boolean
Parameters
columnName - String|GridColumn. required.
The column name or column object which will compare.
ignoreCase - Boolean. Defaults to false.
When compare with the name, if this value is true, it will not be case sensitive.
Code -1
    grid.onGetEditValue = function (grid, index, editResult) {
        if (index.columnIs('orderid', true)) {
            editResult.value += '_x';
        }
    }
See Also
column
rowIndex
GridColumn
Examples
Focused Cell