[Gtk-sharp-list] treeview and doubles
Walter Kempf
gtk-sharp at indicium.za.net
Wed Apr 30 09:14:41 EDT 2008
Hi,
The way I did something similar was to make it a string column and have
the cell renderer's Edited event handler check that the new string is a
valid double. If so, you can format it yourself with the double's
.toString("F6") (IIRC).
Another way would be to define your own rendering methods, but I can't
really remember how that story goes.
Anyway... hope this helps and good luck!
Walter
Martin (OpenGeoMap) wrote:
> Hi all:
>
> It´s posible edit the cellrender for doubles??
>
> Always put 6 decimals. Can i modify that??
>
> Any tips appreciated.
>
>
> Regards.
> _______________________________________________
> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
>
More information about the Gtk-sharp-list
mailing list