position, or null on error (out-of-bound position, etc).
DataModel.getValueAt
gobject.value.Value getValueAt(int col, int row)Retrieves the data stored in the given position (identified by the col and row parameters) on a data model.
Upon errors null will be returned and error will be assigned a #GError from the #GDA_DATA_MODEL_ERROR domain.
This is the main function for accessing data in a model which allows random access to its data. To access data in a data model using a cursor, use a #GdaDataModelIter object, obtained using [gda.data_model.DataModel.createIter].
Note1: the returned #GValue must not be modified directly (unexpected behaviours may occur if you do so).
Note2: the returned value may become invalid as soon as any Libgda part is executed again, which means if you want to keep the value, a copy must be made, however it will remain valid as long as the only Libgda usage is calling [gda.data_model.DataModel.getValueAt] for different values of the same row.
If you want to modify a value stored in a #GdaDataModel, use the [gda.data_model.DataModel.setValueAt] or [gda.data_model.DataModel.setValues] methods.
Upon errors null will be returned and error will be assigned a #GError from the #GDA_DATA_MODEL_ERROR domain.
Parameters
col | a valid column number. |
row | a valid row number. |