<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx</link><description>Overview The DataGrid uses a set of DataGridColumns to describe how to display its data just like a GridView has a set of GridViewColumns to describe its data. In my first post , the sample I used auto-generated the columns for you but this time I want</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>car insurance &amp;raquo; WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#8878796</link><pubDate>Tue, 19 Aug 2008 17:10:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8878796</guid><dc:creator>car insurance &amp;raquo; WPF DataGrid: Stock and Template Columns</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://hoursfunnywallpaper.cn/?p=2068"&gt;http://hoursfunnywallpaper.cn/?p=2068&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Link Listing - August 19, 2008</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#8882551</link><pubDate>Thu, 21 Aug 2008 01:29:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8882551</guid><dc:creator>Christopher Steen</dc:creator><description>&lt;p&gt;Link Listing - August 19, 2008&lt;/p&gt;
</description></item><item><title>DataGridComboBoxColumn with Lookup Table</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#8897093</link><pubDate>Tue, 26 Aug 2008 14:54:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8897093</guid><dc:creator>pan</dc:creator><description>&lt;p&gt;This was a great help for a first touch with the DataGrid!&lt;/p&gt;
&lt;p&gt;I have a question: How can I specify the DataGridComboBoxColumn parameters when I have an ID-field for the DataFieldBinding and the combo box should display the content of an associated table?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Peter&lt;/p&gt;</description></item><item><title>WPF DataGrid: Working with DataGridComboBoxColumn</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#8898385</link><pubDate>Wed, 27 Aug 2008 00:17:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8898385</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;DataGridComboBoxColumn is a column that deserves some special attention. What makes it a little unique&lt;/p&gt;
</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#8898397</link><pubDate>Wed, 27 Aug 2008 00:25:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8898397</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Peter, I just wrote a post on it here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vinsibal/archive/2008/08/26/wpf-datagrid-working-with-datagridcomboboxcolumn.aspx"&gt;http://blogs.msdn.com/vinsibal/archive/2008/08/26/wpf-datagrid-working-with-datagridcomboboxcolumn.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>WPF DataGrid – Styling rows and columns based on Header conditions and other properties</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#8954007</link><pubDate>Tue, 16 Sep 2008 18:11:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8954007</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;There have been several questions on the WPF CodePlex discussion list relating to styling rows and columns&lt;/p&gt;
</description></item><item><title>Overview of the editing features in the WPF DataGrid</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#8971718</link><pubDate>Wed, 01 Oct 2008 17:56:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8971718</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;Introduction I’m going to talk a little on the editing features of the DataGrid. I will dive deep into&lt;/p&gt;
</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#8988455</link><pubDate>Wed, 08 Oct 2008 01:57:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8988455</guid><dc:creator>hempels</dc:creator><description>&lt;p&gt;Having trouble seeing how I can go about adding a tooltip to the ElementStyle for a textblock in a text column:&lt;/p&gt;
&lt;p&gt;&amp;lt;dg:DataGridTextColumn Width=&amp;quot;8.5*&amp;quot; Header=&amp;quot;Key&amp;quot; DataFieldBinding=&amp;quot;{Binding Key}&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;dg:DataGridTextColumn.ElementStyle&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;Style TargetType=&amp;quot;TextBlock&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Setter Property=&amp;quot;ToolTip&amp;quot; Value=&amp;quot;{Binding Text, ElementName=TextBlock}&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/Style&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;&amp;lt;/dg:DataGridTextColumn.ElementStyle&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/dg:DataGridTextColumn&amp;gt;&lt;/p&gt;</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#8989160</link><pubDate>Wed, 08 Oct 2008 03:46:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8989160</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;hempels,&lt;/p&gt;
&lt;p&gt;If you want to bind to the Text property on the TextBlock itself you can do something like this,&lt;/p&gt;
&lt;p&gt;&amp;lt;Setter Property=&amp;quot;ToolTip&amp;quot; Value=&amp;quot;{Binding RelativeSource={RelativeSource Self}, Path=Text}&amp;quot; /&amp;gt;&lt;/p&gt;
</description></item><item><title>Template Columns with CellTemplateSelector</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9021099</link><pubDate>Wed, 29 Oct 2008 01:39:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9021099</guid><dc:creator>Frank</dc:creator><description>&lt;p&gt;Hi &lt;/p&gt;
&lt;p&gt;I tried to select a template based on the data which is displayed by using a DataGridTemplateColumn with a CellTemplateSelector. &lt;/p&gt;
&lt;p&gt;But somehow the template is not selected correcly once the datagrid is scrolled. &lt;/p&gt;
&lt;p&gt;It seems that the template is only selected once and only for the data which initially fits into the grid.&lt;/p&gt;
&lt;p&gt;Any clues?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9024362</link><pubDate>Thu, 30 Oct 2008 15:41:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9024362</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Frank,&lt;/p&gt;
&lt;p&gt;There was a bug similar to this that was fixed in the v1 DataGrid. &amp;nbsp;Try your code out with those bits and let me know if you are still having issues. &amp;nbsp;More info on the v1 DataGrid here, &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vinsibal/archive/2008/10/22/wpf-datagrid-and-the-wpftoolkit-have-released.aspx"&gt;http://blogs.msdn.com/vinsibal/archive/2008/10/22/wpf-datagrid-and-the-wpftoolkit-have-released.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Width does not appear to be working properly</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9037117</link><pubDate>Tue, 04 Nov 2008 07:08:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9037117</guid><dc:creator>David</dc:creator><description>&lt;p&gt;If I set Width to 'Auto' or 'SizeToHeader', the columns are very narrow. &amp;nbsp;If I use 'SizeToCells' the width seems to be correct. &amp;nbsp;My expectation is that Auto would set column width to the max of the width necessary to display cells or width necessary to display title. &amp;nbsp;Is this correct?&lt;/p&gt;</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9039285</link><pubDate>Tue, 04 Nov 2008 16:22:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9039285</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;David,&lt;/p&gt;
&lt;p&gt;Auto will set it to either SizeToHeader or SizeToCells, whichever is larger. &amp;nbsp;Is that not what you are seeing?&lt;/p&gt;
</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9231079</link><pubDate>Wed, 17 Dec 2008 19:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9231079</guid><dc:creator>Vinit</dc:creator><description>&lt;p&gt;Hi Vinsibal,&lt;/p&gt;
&lt;p&gt;Do you have any link or tips regarding sorting DataGridTemplateColumns?&lt;/p&gt;
&lt;p&gt;I see that for template column, although CanUserSort is True, the column header based sorting wouldnt appear. What could we possibly do to achieve this?&lt;/p&gt;
&lt;p&gt;Thx a lot for all the WPF help as always...&lt;/p&gt;
&lt;p&gt;- Vinit&lt;/p&gt;</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9237896</link><pubDate>Fri, 19 Dec 2008 00:23:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9237896</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Vinit,&lt;/p&gt;
&lt;p&gt;What about setting the SortMemberPath on the DataGridTemplateColumn?&lt;/p&gt;
</description></item><item><title>5 Random Gotchas with the WPF DataGrid</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9535974</link><pubDate>Tue, 07 Apr 2009 17:03:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9535974</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;Since the release of the WPF DataGrid there have been several common patterns of questions that developers&lt;/p&gt;
</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9564483</link><pubDate>Thu, 23 Apr 2009 13:49:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9564483</guid><dc:creator>Anurag</dc:creator><description>&lt;p&gt;thanks a lot, i was looking for it from several days :)&lt;/p&gt;</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9596100</link><pubDate>Fri, 08 May 2009 09:58:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9596100</guid><dc:creator>Chander Shekhar</dc:creator><description>&lt;p&gt;Hi all &lt;/p&gt;
&lt;p&gt;I am trying to make a selected data row editable and change all the cells to their respective edit templayed on a button click &lt;/p&gt;
&lt;p&gt;can anyone help with this.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9855980</link><pubDate>Mon, 03 Aug 2009 10:10:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9855980</guid><dc:creator>kapil bhavsar</dc:creator><description>&lt;p&gt;DataGrid column width remains large after decreasing font size even if the ColumnWidth is set to SizeToCell.&lt;/p&gt;</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9889772</link><pubDate>Tue, 01 Sep 2009 12:51:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9889772</guid><dc:creator>Ranu</dc:creator><description>&lt;p&gt;Thanks a lot.&lt;/p&gt;
&lt;p&gt;I was looking for pasting an image into my DataGrid. Your tip about the &amp;quot;DataGridTemplateColumn&amp;quot; helped me. With the GenerateAutoColumns=True flag, the Toolkit automatically constructs TextColumns, so my image was shown as &amp;quot;System.Windows.Controls.Image&amp;quot; ...&lt;/p&gt;
&lt;p&gt;With best regards,&lt;/p&gt;
&lt;p&gt;Ranu&lt;/p&gt;</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9892643</link><pubDate>Tue, 08 Sep 2009 18:59:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9892643</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;I'm wondering on how I can dynamically add Columns to the WPF DataGrid? I see you can add to the column collection however I cannot instantiate a new column. How would one go about doing this or do you have a post to refer me to?&lt;/p&gt;</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9892645</link><pubDate>Tue, 08 Sep 2009 19:01:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9892645</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Oops I was instantiating the base DataGridColumn instead of DataGridTextColumn. Thanks anyways!&lt;/p&gt;</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9910170</link><pubDate>Tue, 20 Oct 2009 20:28:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9910170</guid><dc:creator>Neil</dc:creator><description>&lt;p&gt;Hello, there is a lot of good information here, but I was wondering if you could help me with something. I'm trying to change the Style of a DataGridRow based on the databound value of a DataGridTextColumn in the row. Is there a way to write a trigger for the whole row that is based on the value of the contents of one of the cells in the row?&lt;/p&gt;
&lt;p&gt;For instance, the first column in the row is 'Status' and when the databinding changes the value to 'ON' I want the whole row to light up green. Etc. &lt;/p&gt;
&lt;p&gt;Any help or points in the right direction would be greatly appreciated. Thanks.&lt;/p&gt;
&lt;p&gt;Neil&lt;/p&gt;</description></item><item><title>re: WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx#9910193</link><pubDate>Tue, 20 Oct 2009 21:02:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9910193</guid><dc:creator>Neil</dc:creator><description>&lt;p&gt;Nevermind, figured it out, thanks!&lt;/p&gt;</description></item></channel></rss>