SMART datagrid v.1 > Classes > CellIndex

Back  Forward

DataLudi.CellIndex.normalize  method

It adjusts the values so that this CellIndex can specify a valid location. 

It resets to make it be the first column which is displayed in grid if rowIndex is greater than 0 and less than GridBase.rowCount and if column is null

function normalize (gird: GridView): CellIndex;
Returns
CellIndex
Parameters
gird - GridView. required.
Grid object.
Code -1
    $('#focus').click(function () {
        var index = grid.focusedIndex();
        if (!grid.isValidCell(index)) {
            index.normalize();
            grid.setFocusedIndex(index);
        }
    })
See Also
rowIndex
column
getRow
getValue
GridRow
GridColumn
Examples
Focused Cell