DataModel.getTypedValueAt

gobject.value.Value getTypedValueAt(int col, int row, gobject.types.GType expectedType, bool nullok)

Upon errors null will be returned and error will be assigned a #GError from the #GDA_DATA_MODEL_ERROR domain.

This method is similar to [gda.data_model.DataModel.getValueAt], except that it also allows one to specify the expected #GType of the value to get: if the data model returned a #GValue of a type different than the expected one, then this method returns null and an error code.

Note

the same limitations and usage instructions apply as for [gda.data_model.DataModel.getValueAt].

Upon errors null will be returned and error will be assigned a #GError from the #GDA_DATA_MODEL_ERROR domain.

Parameters

cola valid column number.
rowa valid row number.
expectedTypethe expected data type of the returned value
nullokif TRUE, then NULL values (value of type GDA_TYPE_NULL) will not generate any error

Returns

a #GValue containing the value stored in the given

position, or null on error (out-of-bound position, wrong data type, etc).

Throws

[DataModelException]