SMART datagrid v.1 > Classes > GridView

[ grids ver.1.3.8]   Back  Forward

DataLudi.GridView.getRowsOfDataIndices  method

返回相当于通过indices而传递的数据行索引网格行对象的数组。 

function getRowsOfDataIndices (indices: [Integer], all: Boolean): [GridRow];
Returns
[GridRow]
Parameters
indices - [Integer]. required.
数据行索引的数组。
all - Boolean. 默认值为false.
如果为true,就会包含祖辈行被折叠或因为筛选而被排除的行。
Code -1
    // 勾选被修改的行。
    var rows = ds.getStateRows(DataLudi.DataRowState.UPDATED);
    rows = grid.getRowsOfDataIndices(rows);
    grid.checkAll(false);
    grid.checkRows(rows, true);
See Also
getRowOfDataIndex
getRowIndexOfDataIndex
GridRow
GridRow.dataIndex
DataRow
Examples
行模型