<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
The treeview is much more flexible than the MS grid view and getting
used to using it may take some time. If you are looking for a simple
grid I suggest using the Gtk.TreeView with a ListStore to start out, if
you are needing something more flexable you will be needing a TreeStore.<br>
<br>
There is no "binding" object with a TreeView you will need to add the
rows by iterating through the data. I had difficulty moving from the MS
GridView to the TreeView at first managing the iter and path takes a
bit of getting used to. Here is another useful link
<a class="moz-txt-link-freetext" href="http://www.emcken.dk/weblog/archives/179-Mono-coding-Capturing-right-clicks-in-a-Gtk.TreeView.html">http://www.emcken.dk/weblog/archives/179-Mono-coding-Capturing-right-clicks-in-a-Gtk.TreeView.html</a><br>
<br>
I hope this helps<br>
<br>
<br>
Eric Miller wrote:
<blockquote cite="mid:4759BEC5.3000908@gmail.com" type="cite">
  <pre wrap="">Jacek Ruzyczka wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi folks,

I've been searching for a grid view widget for use in my Gtk# project, just 
like the DataGrid in WinForms (let aside the database binding) or the JTable 
in Java, but haven't found anything. Is there a handy solution in Gtk# for 
presenting data in a versatile grid?

Thank you.
Jacek Rużyczka


------------------------------------------------------------------------

_______________________________________________
Gtk-sharp-list maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Gtk-sharp-list@lists.ximian.com">Gtk-sharp-list@lists.ximian.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Funny you should ask. I was just looking for the same thing and couldn't 
find much Googling for grid or list view. I was looking for the wrong 
thing - the treeview will display as a grid/table or a tree.

Here's the tutorial I found:
<a class="moz-txt-link-freetext" href="http://www.mono-project.com/GtkSharp_TreeView_Tutorial">http://www.mono-project.com/GtkSharp_TreeView_Tutorial</a>

Eric Miller

_______________________________________________
Gtk-sharp-list maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Gtk-sharp-list@lists.ximian.com">Gtk-sharp-list@lists.ximian.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</a>
  </pre>
</blockquote>
<br>
</body>
</html>