SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.isValidCell  method

If CellIndex specified by parameter index indicates a valid location within this grid, it will return true

it will be a valid cell location. 

function isValidCell (index: CellIndex): Boolean;
Returns
Boolean
Parameters
index - CellIndex.
Code -1
    $('#getValue').click(function () {
        var idx = DataLudi.createIndex($('#edRowIndex').val(), grid.columnByName($('#edColumn').val()));
        if (grid.isValidIndex(idx)) {
            grid.setFocusedIndex(idx);
        }
    });
See Also
isValidColumn
isValidRow
CellIndex
focusedIndex
createIndex
Examples
Focused Cell