SMART datagrid v.1 > Classes > GridView

[ grids ver.1.3.2]   Back  Forward

DataLudi.GridView.getDataIndicesOfRows  method

Return the indexes of data row corresponding to the row number or Grid Row object specified by rows parameter. 

function getDataIndicesOfRows (rows: [Integer|GridRow], all: Boolean): [Integer];
Returns
[Integer]
Parameters
rows - [Integer|GridRow]. required.
all - Boolean. Defaults to false.
If it is true, it will contain rows which are not data row in -1.
Code -1
    // Delete the checked rows.
    var rows = grid.getCheckedRows();
    rows = grid.getDataIndicesOfRows(rows);
    ds.deleteRows(rows);
See Also
GridRow
GridBase.getRowIndexOfDataIndex
GridBase.getRowIndices
GridBase.getRowIndicesOfDataIndices