<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Programming with .NET - General</title><link>http://forums.silverlight.net/forums/17.aspx</link><description>General discussions around authoring Silverlight .NET applications.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Error from RC0 DataGrid related changes</title><link>http://forums.silverlight.net/forums/thread/99209.aspx</link><pubDate>Mon, 29 Sep 2008 14:21:51 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:99209</guid><dc:creator>sladapter</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/99209.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=99209</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;b&gt;Yi-Lun Luo,&lt;/b&gt;&lt;/p&gt;&lt;p&gt;Thanks for the information. I can now show custom DataGrid header. &lt;/p&gt;&lt;p&gt;But with custom header, column sort is off even I set the col.SortMemberPath. Why is that? It used to work in beta2.&lt;/p&gt;&lt;p&gt;[Edit]&lt;/p&gt;&lt;p&gt;OK, I found Sort can work if the custom header does not use Button or HyperlinkButton. But as long as I define Template in the Style, the image that indicating the current sort is no longer showing up. &lt;/p&gt;&lt;p&gt;I guess this makes some sense. If user define their own Header Template, they should be responsible for how they want their header really look like including the sort image.&lt;/p&gt;&lt;p&gt;[End Edit] &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Column reorder is also off when using custom header. It used to error out in beta2. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Error from RC0 DataGrid related changes</title><link>http://forums.silverlight.net/forums/thread/99113.aspx</link><pubDate>Mon, 29 Sep 2008 12:05:49 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:99113</guid><dc:creator>Yi-Lun Luo - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/99113.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=99113</wfw:commentRss><description>&lt;p&gt;Hello, please refer to &lt;a href="http://silverlight.net/forums/p/30592/99042.aspx#99042"&gt;http://silverlight.net/forums/p/30592/99042.aspx#99042&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Re: Error from RC0 DataGrid related changes</title><link>http://forums.silverlight.net/forums/thread/98656.aspx</link><pubDate>Sun, 28 Sep 2008 11:15:06 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:98656</guid><dc:creator>Tregarick</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/98656.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=98656</wfw:commentRss><description>Had the same issue in XAML tried using DataTemplate and ContentTemplate nothing works it just locks my visual studio and maxes out my CPU.&amp;nbsp; The DataGrid headers have been totally messed up, I think you can&amp;nbsp;only apply text to the content property as I have seen others report that even binding on the Content property has broken.&amp;nbsp; Think this is more of a Beta 3 release than an RC0 I use the header template loads an now all my grids are broken :-)</description></item><item><title>Re: Error from RC0 DataGrid related changes</title><link>http://forums.silverlight.net/forums/thread/98570.aspx</link><pubDate>Sun, 28 Sep 2008 03:04:04 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:98570</guid><dc:creator>sladapter</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/98570.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=98570</wfw:commentRss><description>&lt;p&gt;There is no Header.Template property that I can set. I need dynamically generate those columns and I don&amp;#39;t want to use default header either. How are we going to do this?&lt;/p&gt;&lt;p&gt;Why can&amp;#39;t we set a control to the Header anymore? What the Header property is for now? This just puzzles me.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Error from RC0 DataGrid related changes</title><link>http://forums.silverlight.net/forums/thread/98487.aspx</link><pubDate>Sat, 27 Sep 2008 20:25:50 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:98487</guid><dc:creator>CraigN</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/98487.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=98487</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I remember seeing something like this in my testing as well, but I was working in XAML and not code-behind. I am not in front of my dev PC right now but if I recall correctly you need to put the content inside a DataTemplate.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Error from RC0 DataGrid related changes</title><link>http://forums.silverlight.net/forums/thread/97846.aspx</link><pubDate>Fri, 26 Sep 2008 15:53:10 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:97846</guid><dc:creator>sladapter</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/97846.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=17&amp;PostID=97846</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Anybody knows how to set DataGridColumn.Header in RC0? My code used to work this way:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataGridColumn col =&amp;nbsp; new DataGridTextColumn(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; ...// code to set binding etc&amp;nbsp; &lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HyperlinkButton b = new HyperlinkButton();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b.Content = &amp;quot;MyHeader&amp;quot;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b.HorizontalAlignment = HorizontalAlignment.Center;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; col.Header = b;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;// Cause of the error is this line&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; theGrid.Columns.Add(col);&amp;nbsp; &lt;b&gt;// Error in this line&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Now
I&amp;#39;m getting run-time error &amp;quot;&lt;b&gt;Content does not support UIElements, use
ContentTemplate instead&lt;/b&gt;&amp;quot;.&amp;nbsp; What dose this mean?&amp;nbsp;&lt;/p&gt;&lt;p&gt; If I comment out col.Header = b line, it
works.&amp;nbsp; &lt;/p&gt;&lt;p&gt;I tried to set&amp;nbsp; col.Header = new Grid(), got same error. How do we set the col.Header now? &lt;/p&gt;&lt;p&gt;I have read the breaking changes, but I did not find any DataGrid related changes.&lt;/p&gt;</description></item></channel></rss>