SilverlightShow: Changing the style of the selected row of the DataGrid control Comments http://www.silverlightshow.net/ Silverlight articles, Silverlight tutorials, Silverlight videos, Silverlight samples SilverlightShow.net http://www.rssboard.org/rss-specification Argotic Syndication Framework 2008.0.2.0, http://www.codeplex.com/Argotic en-US estoychev@completit.com (Emil Stoychev) Re: Changing the style of the selected row of the DataGrid control <p>Great .. Thank You very Much..!!</p> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment8414 holyballs http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Fri, 31 Aug 2012 07:50:45 GMT Re: Changing the style of the selected row of the DataGrid control <p>great help thnx a bunch :)</p> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment7824 santoshf2 http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Tue, 10 Apr 2012 14:54:01 GMT Re: Changing the style of the selected row of the DataGrid control <p>Thank you very much.</p> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment7821 dong http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Mon, 09 Apr 2012 06:33:28 GMT RE: Changing the style of the selected row of the DataGrid control <em><span style="font-size: 11pt; line-height: 115%; font-family: calibri, sans-serif;">The article has been updated to the latest version of Silverlight and Visual Studio.</span></em> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment5363 lnikolov http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Fri, 21 Jan 2011 10:57:09 GMT RE: Changing the style of the selected row of the DataGrid control <p><strong>Great help</strong></p> <p>Thanks</p> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment4014 Jatin http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Tue, 20 Jul 2010 11:12:15 GMT RE: Changing the style of the selected row of the DataGrid control <p>Excellent article.<br /> It solve my problem.<br /> <br /> Many thanks! </p> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment3271 Michel http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Thu, 18 Mar 2010 19:16:14 GMT RE: Changing the style of the selected row of the DataGrid control Great! It's working in my project.<br /> I really appreciate you. Thanks. http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment2734 Richard http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Wed, 02 Dec 2009 05:33:32 GMT RE: Changing the style of the selected row of the DataGrid control thanks, helped me a lot.<br /> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment2724 loryas http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Mon, 30 Nov 2009 18:03:29 GMT RE: Changing the style of the selected row of the DataGrid control <p>In the case you want to change any font properties like foreground, you need to wrap the <span style="color: #800000;">DataGridCellsPresenter</span> <span style="color: rgb(255,0,0);"></span>into a content control, because the <span style="color: #800000;">DataGridCellsPresenter</span> doesnt have any of these properties it inherits them from the parent. Here is an example: <a shape="rect" href="http://alejandrobog.wordpress.com/2009/07/02/silverlight-datagrid-change-foreground-color-on-visualstatemanagermouseover-selected" shape="rect">http://alejandrobog.wordpress.com/2009/07/02/silverlight-datagrid-change-foreground-color-on-visualstatemanagermouseover-selected</a> </p> <p> </p> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment2554 Alejandro http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Fri, 16 Oct 2009 07:27:04 GMT RE: Changing the style of the selected row of the DataGrid control I'm really kind of surprised that changing the visual style of such a useful control is such a difficult task. At least once the appropriate template was copied into my app.xml, I was able to edit things using Expression Blend. Hopefully this sort of thing will get sorted out in a later version of the tools.<br /> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment2395 W. Leader http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Thu, 24 Sep 2009 00:39:45 GMT RE: Changing the style of the selected row of the DataGrid control Exelente aporte.. Gracias http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment2344 Apogen http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Fri, 11 Sep 2009 06:48:27 GMT RE: Changing the style of the selected row of the DataGrid control <p>Hi,</p> <p>Is it possible to switch the row color based on a (first column) checkbox? like if the checkbox selected, rowColor = blue</p> <p>and unselected then rowColor = Yellow....</p> <p>Thanks,</p> <p>Gopi</p> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment2221 gopinath vara http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Mon, 10 Aug 2009 23:09:33 GMT RE: Changing the style of the selected row of the DataGrid control <p>Hi,</p> <p>Is it possible to switch the row color based on a (first column) checkbox? like if the checkbox selected, rowColor = blue</p> <p>and unselected then rowColor = Yellow....</p> <p>Thanks,</p> <p>Gopi</p> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment2220 gopinath vara http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Mon, 10 Aug 2009 22:13:33 GMT RE: Changing the style of the selected row of the DataGrid control In your live example, the first row is initially selected (index = 0) , but it does not show the orange highlighted color when first displayed.  This does not seem to be the desired behavior.  Since this row is selected, shouldnyt it initially show in orange as well? http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment1619 GEB http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Thu, 28 May 2009 15:34:43 GMT RE: Changing the style of the selected row of the DataGrid control <p>nice work</p> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment1043 Jorley http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Thu, 12 Feb 2009 09:18:36 GMT RE: Changing the style of the selected row of the DataGrid control <p>great help...thanx lot</p> <p> </p> http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx#comment1015 Vikram http://www.silverlightshow.net/items/Changing-the-style-of-the-selected-row-of-the-DataGrid-control.aspx Wed, 04 Feb 2009 10:44:14 GMT