<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://xceed.com/CS/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>Search results matching tags 'Column' and 'CellContentTemplate'</title><link>http://xceed.com/CS/search/SearchResults.aspx?o=DateDescending&amp;tag=Column,CellContentTemplate&amp;orTags=0</link><description>Search results matching tags 'Column' and 'CellContentTemplate'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Debug Build: 61120.2)</generator><item><title>Hiding / Formatting DataGridItemProperty detail rows, and exporting them to Excel</title><link>http://xceed.com/CS/forums/post/21559.aspx</link><pubDate>Thu, 11 Jun 2009 19:20:56 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:21559</guid><dc:creator>Neo</dc:creator><description>&lt;P&gt;In my DataGridControl, I have defined &lt;STRONG&gt;Column&lt;/STRONG&gt; objects&amp;nbsp;for the columns of the master rows and &lt;STRONG&gt;DataGridItemProperty&lt;/STRONG&gt; objects (like below) for the columns of the detail rows (PropertyDetailDescription in DataGridCollectionViewSource.DetailDescriptions).&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size=1&gt;&amp;lt;xcdg:DataGridItemProperty Name="MyProp" DataType="{x:Type sys:Decimal}" /&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have &lt;STRONG&gt;AutoCreateDetailConfigurations&lt;/STRONG&gt; set to &lt;EM&gt;True&lt;/EM&gt; on my DataGridControl, so the&amp;nbsp;objects that the detail rows bind to have extra properties I don't want to be displayed as columns.&amp;nbsp; However, I am unable to specify and hide these columns in&amp;nbsp;a &lt;STRONG&gt;DataGridItemProperty&lt;/STRONG&gt;&amp;nbsp;object&amp;nbsp;like I can with a &lt;STRONG&gt;Column&lt;/STRONG&gt; object (like below).&amp;nbsp; How is this possible with &lt;STRONG&gt;DataGridItemProperty&lt;/STRONG&gt;&amp;nbsp;objects?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size=1&gt;&amp;lt;xcdg:Column FieldName="MyHiddenProp" Visible="False" /&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I wish to apply some formatting to the values in the cells of the detail rows.&amp;nbsp; With &lt;STRONG&gt;Column&lt;/STRONG&gt; objects I can use CellContentTemplate (like below), but &lt;STRONG&gt;DataGridItemProperty&lt;/STRONG&gt; objects don't have this facility.&amp;nbsp; How can this be done with &lt;STRONG&gt;DataGridItemProperty&lt;/STRONG&gt;&amp;nbsp;objects?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size=1&gt;&amp;lt;xcdg:Column FieldName="MyFormattedProp" CellContentTemplate="{StaticResource integralCellContentTemplate}" /&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One more thing, how do I export the contents of the detail rows to Excel?&amp;nbsp; The &lt;STRONG&gt;ExportToExcel()&lt;/STRONG&gt; function of DataGridControl only exports the master rows.&lt;/P&gt;</description></item><item><title>Capturing Click event of Button in a DataCell using MVVM</title><link>http://xceed.com/CS/forums/post/19536.aspx</link><pubDate>Mon, 23 Mar 2009 19:42:43 GMT</pubDate><guid isPermaLink="false">14592c03-f9d0-4f6b-b4cd-71e0e1b1f679:19536</guid><dc:creator>Shailesh</dc:creator><description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am using Model View ViewModel pattern. I have a button inside a DataCell of Xceed DataGrid. I want to use DelegateCommand to handle the click event of the button. &lt;/P&gt;
&lt;P&gt;Also, I dont want to write anything for the same in my Code Behind. I want everything to reside in my ViewModel. &lt;/P&gt;
&lt;P&gt;How can this be achieved. I thought of RoutedEvents / RoutedCommands but they need some entry in the Code Behind file. &lt;/P&gt;
&lt;P&gt;This I want to eliminate. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;Requesting you to please help on the same. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards&lt;/P&gt;
&lt;P&gt;SSA.&lt;/P&gt;</description></item></channel></rss>