DataModelT.getValueAt

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.

template DataModelT()
override
getValueAt
(
int col
,
int row
)

Parameters

col int

a valid column number.

row int

a valid row number.

Return Value

Type: gobject.value.Value

a #GValue containing the value stored in the given position, or null on error (out-of-bound position, etc).

Throws