MMpy.DataGrid.set_row
Syntax
datagrid.set_row(row, values)
Description
Sets the values for a specific row in the data grid.
Parameters
Name |
Type |
Description |
---|---|---|
row |
int | The row index. |
values |
list[any] | The values to assign to the row. |
See Also
MMpy.DataGrid.get_row
Notes
If the value types cannot be handled by the data grid, a ValueError exception will be raised.
Row indexes are 0-based, meaning passing an index of 0 will return the first row.
Examples
datagrid = MMpy.DataGrid(...) ... datagrid.set_row(0, [22.0 / 7.0])
Resource ID
IDPH_DATAGRID_SET_ROW