[Gtk-sharp-list] TreeStore saving state

Christian Hoff christian_hoff at gmx.net
Sat Aug 2 13:16:33 EDT 2008

Why don't you write a custom TreeModel? I have written one for
DataTables and am testing another one for DataViews(attached, to display
data tables pass the default view of the table: table.DefaultView).
Forget about storing data at two locations in the memory, this will only
cause trouble and performance issues :-)

A good tutorial is available at
http://www.mono-project.com/ImplementingGInterfaces. Hoewever,
GInterface implementation was introduced in Gtk# 2.12 so you might need
to update your installation.
> So the question is... in your opinion what is the best way to save the 
> values from a TreeStore in a database and retrieve them again through 
> SQL and maintain the intended parent/child relationship.
> This maybe simple and I just missed it.
> Thanks for your help
> Andy
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

-------------- next part --------------
A non-text attachment was scrubbed...
Name: DataViewStore.cs
Type: text/x-csharp
Size: 7897 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080802/107f6c7c/attachment.bin 

More information about the Gtk-sharp-list mailing list