SMART datagrid v.1 > Classes > GridBase
DataLudi.GridBase.getRows method
将位于通过参数rowIndices而指定的位置的行对象,返回为数组。
如果参数allowNull为true,超出范围的项目将会把null添加到返回数组,而如果为false,就不会添加到数组。
function getRows (rowIndices: [Integer], allowNull: Boolean): [GridRow];
- Returns
- [GridRow]
- Parameters
- rowIndices - [Integer]. required.
- allowNull - Boolean. 默认值为false.
Code -1
var rows = grid.getRows([0, 1]);
- See Also
- getRow
- GridRow
- Examples
- Hello Grid