[Gtk-sharp-list] [MonoDevelop] feedback and suggestions for GTK#

Christian Hoff christian_hoff at gmx.net
Sat Oct 24 11:09:33 EDT 2009


Sharique uddin Ahmed Farooqui wrote:
> Hi,
>
> I'm writting a a GTK# application (Although Qt is my favorite gui
> toolkit of all time).  There are few things I have noted
>
> * data binding - I googled, but did not found simple way to do the
> task. (I'm from asp.net bg, and I like its data binding very much).
> Since Gtk# is for desktop, it is going to support Winform or WPF like
> data binding.
>   
Yeah, data binding in Gtk# is a pain. I have written a custom TreeModel 
which can be used to display any IList (DataView with columns, Arrays, 
ArrayLists etc.), but as there appeared to be very less community 
interest and there are some more issues with that implementation, it was 
never included into Gtk# itself. If you are simply looking for a way to 
display and maybe IList data, using that TreeModel might be the best way 
to go. I attached the model and a sample application, but you'll have to 
change the

Gtk.TreeView treeview = new Gtk.TreeView (dolls); line to
Gtk.TreeView treeview = new Gtk.TreeView (new Gtk.IListStore (dolls));

If you're looking for a complete databinding toolkit, you should use 
gtk-databind (http://gtk-databind.sourceforge.net).


Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: IListStore.cs
Type: text/x-csharp
Size: 10056 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20091024/eb3d145c/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IListDemo.cs
Type: text/x-csharp
Size: 1670 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20091024/eb3d145c/attachment-0001.bin 


More information about the Gtk-sharp-list mailing list