I checked the Mono Documentation and saw two interesting properties for TreeViews: EvenRowColor and OddRowColor. The only problem is, that both of them are read-only and I found no methods to change their values. I'm sure that the developers of GTK# didn't forget these methods by chance. They probably had a reason to left these methods out.<br>
<div class="gmail_quote">
<br><div class="gmail_quote">2008/4/27 Chris Howie <<a href="mailto:cdhowie@gmail.com" target="_blank">cdhowie@gmail.com</a>>:<div><div></div><div class="Wj3C7c"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>On Sun, Apr 27, 2008 at 2:34 AM, Tim Howard <<a href="mailto:timothy.howard@gmail.com" target="_blank">timothy.howard@gmail.com</a>> wrote:<br>
> I think this is appropriate material for this list. I'm trying to have a<br>
> TreeView with a ListStore have rows that are different colors. I'm pretty<br>
> sure it's possible, because it looks like it's the case with MonoDevelop and<br>
> User Tasks/Comments. The question is, how?<br>
><br>
> (Point of clarity: First row be red, second row be green -- that's all. I<br>
> guess more generally, how do you control the row color as opposed to the<br>
> column color)<br>
><br>
> Thanks!<br>
<br>
</div></div>That would be controlled by the GTK+ theme selected by the user.<br>
Unless you have a really, really, *REALLY* good reason to decide not<br>
to honor the user's preferences, you should just stick with the<br>
default.<br>
<font color="#888888"><br>
--<br>
Chris Howie<br>
<a href="http://www.chrishowie.com" target="_blank">http://www.chrishowie.com</a><br>
<a href="http://en.wikipedia.org/wiki/User:Crazycomputers" target="_blank">http://en.wikipedia.org/wiki/User:Crazycomputers</a><br>
_______________________________________________<br>
Gtk-sharp-list maillist - <a href="mailto:Gtk-sharp-list@lists.ximian.com" target="_blank">Gtk-sharp-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list" target="_blank">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</a><br>
</font></blockquote></div></div></div><br>
</div><br>