SMART datagrid v.1 > Classes > GridView
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
- 行模型