Re: [gnome-db] how to print selected row in gnome_db_raw_grid?



gda_data_model_iter_get_value_at is in V4

can i do g_printf("%s", value) ?

i am always confuse with the datatype GValue.. how to make sure it is
of type char or integer?

using try and error. i manage to print the value using

list = GDA_PARAMETER_LIST (iter)->parameters;
param = GDA_PARAMETER (g_slist_nth_data (list, 0));	
str = gda_parameter_get_value_str (param);

i am not sure it is the best way. is there any other better way i can
do it in V3?

thank you

On 9/23/08, Vivien Malerba <vmalerba gmail com> wrote:
> 2008/9/23 paragasu <paragasu gmail com>
>
>> how to get the value from the selected row in gnome_db_raw_grid?
>> so i can put it inside gtk_dialog
>>
>
> GdaDataModelIter *iter;
> iter = gnome_db_data_widget_get_current_data (GNOME_DB_DATA_WIDGET
> (raw_grid);
> const GValue *value;
> value = gda_data_model_iter_get_value_at (iter, your_column);
>
> Cheers,
>
> Vivien
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]