SMART datagrid v.1 > Classes > GridBase
DataLudi.GridBase.isValidRow method
If CellIndex specified by parameter index indicates a valid row within this grid, it will return true.
- If index.grid is this grid,
- and if index.itemIndex is greater than 0 and less than rowCount, it will be considered as valid.
function isValidRow (index: CellIndex): Boolean;
- Returns
- Boolean
- Parameters
- index - CellIndex.
Code -1
var idx = grid.focusedIndex();
if (grid.isValidateRow(idx)) {
return grid.getRow(idx.rowIndex).dataIndex();
}
- See Also
- isValidCell
- isValidColumn
- CellIndex