Cellrendertext and decimal place

Is there a way to control the decimal places shown in a cellrenderertext without using a celldatafunction?

I have a liststore coloumn of type Double
I then insert text into it of fromat dd.dd (two decimal places
However when it is inserted into the cellrender gtk adds an additional four decimal places

GtkCellRendererText’s text property is string typed. When you map it to a model column with a different type, the value is converted with g_value_transform() in an unconfigurable manner. If you don’t want to use a cell data func, then you should store formatted strings in the model.

Thanks I was afraid that would be the case.
Worked around the problem by adding the data twice, one in a string column which is shown and in a Double column for sorting, then setting sort column to this.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.