<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: KryptonTreeView Lines</title>
	<atom:link href="http://www.componentfactory.com/blog/2011/05/kryptontreeview-lines/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.componentfactory.com/blog/2011/05/kryptontreeview-lines/</link>
	<description>Windows Forms Controls for .NET Smart Client Applications</description>
	<lastBuildDate>Sun, 05 May 2013 14:09:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Pradeep</title>
		<link>http://www.componentfactory.com/blog/2011/05/kryptontreeview-lines/comment-page-1/#comment-3286</link>
		<dc:creator>Pradeep</dc:creator>
		<pubDate>Wed, 01 Jun 2011 05:10:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.componentfactory.com/blog/?p=702#comment-3286</guid>
		<description><![CDATA[Please Implement Datasource to be filled like the below:

   public static void SetDataSource(this TreeView tvw, string RootName, Object DataSource, string ValueMember, string DisplayMember, object NodeToSelect = null, Control[] ControlsToClear = null)
        {
            tvw.BeginUpdate();
            tvw.ClearDataSource(ControlsToClear);

            TreeNode root = new TreeNode(RootName) { Name = &quot;Root&quot; };
            tvw.Nodes.Add(root);

            CurrencyManager currencyManager = (CurrencyManager)tvw.BindingContext[DataSource];
            if (currencyManager.Count &gt; 0)
            {
                IList innerList = currencyManager.List;

                PropertyDescriptor pdDisplay = currencyManager.GetItemProperties()[DisplayMember];
                if (pdDisplay == null) { MsgBox.Error(&quot;Invalid Display Member: &quot; + DisplayMember, &quot;Unable to set Datasource&quot;); return; }

                PropertyDescriptor pdValue = currencyManager.GetItemProperties()[ValueMember];
                if (pdDisplay == null) { MsgBox.Error(&quot;Invalid Value Member: &quot; + ValueMember, &quot;Unable to set Datasource&quot;); return; }

                foreach (object record in innerList)
                {
                    string Text = pdDisplay.GetValue(record).ReturnEmptyIfNull();
                    string Value = pdValue.GetValue(record).ReturnEmptyIfNull();

                    TreeNode childNode = new TreeNode(Text) { Name = tvw.setName(Value), Tag = record };
                    root.Nodes.Add(childNode);
                }
            }
            tvw.EndUpdate();
            tvw.Format();

            if (NodeToSelect != null) { tvw.SelectNode(NodeToSelect.ToString()); tvw.Focus(); }
            
        }]]></description>
		<content:encoded><![CDATA[<p>Please Implement Datasource to be filled like the below:</p>
<p>   public static void SetDataSource(this TreeView tvw, string RootName, Object DataSource, string ValueMember, string DisplayMember, object NodeToSelect = null, Control[] ControlsToClear = null)<br />
        {<br />
            tvw.BeginUpdate();<br />
            tvw.ClearDataSource(ControlsToClear);</p>
<p>            TreeNode root = new TreeNode(RootName) { Name = &#8220;Root&#8221; };<br />
            tvw.Nodes.Add(root);</p>
<p>            CurrencyManager currencyManager = (CurrencyManager)tvw.BindingContext[DataSource];<br />
            if (currencyManager.Count &gt; 0)<br />
            {<br />
                IList innerList = currencyManager.List;</p>
<p>                PropertyDescriptor pdDisplay = currencyManager.GetItemProperties()[DisplayMember];<br />
                if (pdDisplay == null) { MsgBox.Error(&#8220;Invalid Display Member: &#8221; + DisplayMember, &#8220;Unable to set Datasource&#8221;); return; }</p>
<p>                PropertyDescriptor pdValue = currencyManager.GetItemProperties()[ValueMember];<br />
                if (pdDisplay == null) { MsgBox.Error(&#8220;Invalid Value Member: &#8221; + ValueMember, &#8220;Unable to set Datasource&#8221;); return; }</p>
<p>                foreach (object record in innerList)<br />
                {<br />
                    string Text = pdDisplay.GetValue(record).ReturnEmptyIfNull();<br />
                    string Value = pdValue.GetValue(record).ReturnEmptyIfNull();</p>
<p>                    TreeNode childNode = new TreeNode(Text) { Name = tvw.setName(Value), Tag = record };<br />
                    root.Nodes.Add(childNode);<br />
                }<br />
            }<br />
            tvw.EndUpdate();<br />
            tvw.Format();</p>
<p>            if (NodeToSelect != null) { tvw.SelectNode(NodeToSelect.ToString()); tvw.Focus(); }</p>
<p>        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeep</title>
		<link>http://www.componentfactory.com/blog/2011/05/kryptontreeview-lines/comment-page-1/#comment-3285</link>
		<dc:creator>Pradeep</dc:creator>
		<pubDate>Wed, 01 Jun 2011 05:08:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.componentfactory.com/blog/?p=702#comment-3285</guid>
		<description><![CDATA[Please Implement DataSource for the treeview control]]></description>
		<content:encoded><![CDATA[<p>Please Implement DataSource for the treeview control</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tester</title>
		<link>http://www.componentfactory.com/blog/2011/05/kryptontreeview-lines/comment-page-1/#comment-3278</link>
		<dc:creator>Tester</dc:creator>
		<pubDate>Thu, 26 May 2011 08:27:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.componentfactory.com/blog/?p=702#comment-3278</guid>
		<description><![CDATA[Hi,

It&#039;s look very great :D
Could we select multiple nodes at once?]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>It&#8217;s look very great :D<br />
Could we select multiple nodes at once?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://www.componentfactory.com/blog/2011/05/kryptontreeview-lines/comment-page-1/#comment-3277</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Wed, 25 May 2011 22:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.componentfactory.com/blog/?p=702#comment-3277</guid>
		<description><![CDATA[Looks great... If you are taking requests:

1) add a node enabled property.
2) allow for nodes with or without check boxes.
3) allow for nodes without images to not draw empty space.
4) are tri-state check-boxes useful?]]></description>
		<content:encoded><![CDATA[<p>Looks great&#8230; If you are taking requests:</p>
<p>1) add a node enabled property.<br />
2) allow for nodes with or without check boxes.<br />
3) allow for nodes without images to not draw empty space.<br />
4) are tri-state check-boxes useful?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Wright</title>
		<link>http://www.componentfactory.com/blog/2011/05/kryptontreeview-lines/comment-page-1/#comment-3275</link>
		<dc:creator>Phil Wright</dc:creator>
		<pubDate>Tue, 24 May 2011 23:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.componentfactory.com/blog/?p=702#comment-3275</guid>
		<description><![CDATA[Cocotteseb:

I override all the node drawing so I have to draw the plus/minus image and also the lines myself at the correct indentation.

Hitesh:

I will be adding the checkbox drawing with the ability to override the images shown.

Marco Pozzati:

I hope to add the ability to have a second string drawn in a different text/font etc.]]></description>
		<content:encoded><![CDATA[<p>Cocotteseb:</p>
<p>I override all the node drawing so I have to draw the plus/minus image and also the lines myself at the correct indentation.</p>
<p>Hitesh:</p>
<p>I will be adding the checkbox drawing with the ability to override the images shown.</p>
<p>Marco Pozzati:</p>
<p>I hope to add the ability to have a second string drawn in a different text/font etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cocotteseb</title>
		<link>http://www.componentfactory.com/blog/2011/05/kryptontreeview-lines/comment-page-1/#comment-3274</link>
		<dc:creator>Cocotteseb</dc:creator>
		<pubDate>Tue, 24 May 2011 21:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.componentfactory.com/blog/?p=702#comment-3274</guid>
		<description><![CDATA[Really nice !

How does it look with 2007 themes ? I think it is the most difficult theme to apply to the treeview
It is really nice to see you were able to change the - + icons of the treeview. I&#039;m curious how do you have achieved this !

Finally are we still able to custom draw the nodes ?]]></description>
		<content:encoded><![CDATA[<p>Really nice !</p>
<p>How does it look with 2007 themes ? I think it is the most difficult theme to apply to the treeview<br />
It is really nice to see you were able to change the &#8211; + icons of the treeview. I&#8217;m curious how do you have achieved this !</p>
<p>Finally are we still able to custom draw the nodes ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hitesh</title>
		<link>http://www.componentfactory.com/blog/2011/05/kryptontreeview-lines/comment-page-1/#comment-3273</link>
		<dc:creator>Hitesh</dc:creator>
		<pubDate>Tue, 24 May 2011 12:42:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.componentfactory.com/blog/?p=702#comment-3273</guid>
		<description><![CDATA[Pl add radio and checkbox button. like IE adv setting options]]></description>
		<content:encoded><![CDATA[<p>Pl add radio and checkbox button. like IE adv setting options</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Pozzati</title>
		<link>http://www.componentfactory.com/blog/2011/05/kryptontreeview-lines/comment-page-1/#comment-3272</link>
		<dc:creator>Marco Pozzati</dc:creator>
		<pubDate>Tue, 24 May 2011 08:37:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.componentfactory.com/blog/?p=702#comment-3272</guid>
		<description><![CDATA[It would be really nice (and very very important for me) if you could add the possibility to add a text with different font next to the node label, like Outlook does next to mail folder to display how many mails there are. Thanks!]]></description>
		<content:encoded><![CDATA[<p>It would be really nice (and very very important for me) if you could add the possibility to add a text with different font next to the node label, like Outlook does next to mail folder to display how many mails there are. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkr</title>
		<link>http://www.componentfactory.com/blog/2011/05/kryptontreeview-lines/comment-page-1/#comment-3271</link>
		<dc:creator>jkr</dc:creator>
		<pubDate>Tue, 24 May 2011 07:08:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.componentfactory.com/blog/?p=702#comment-3271</guid>
		<description><![CDATA[looking nice... great to see that you&#039;ve started adding controls :)]]></description>
		<content:encoded><![CDATA[<p>looking nice&#8230; great to see that you&#8217;ve started adding controls :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
