﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Color GroupHeaderRow to match ChildRow color</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Color-GroupHeaderRow-to-match-ChildRow-color/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Color GroupHeaderRow to match ChildRow color</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Color-GroupHeaderRow-to-match-ChildRow-color/</link><pubDate>Sun, 01 Jul 2012 23:16:26 GMT</pubDate><dc:creator>bernard</dc:creator><category>GroupHeaderRow</category><description>
&lt;p&gt;Hi Randy,&lt;/p&gt;
&lt;p&gt;Sorry for misunderstanding. I've tried to replicate your problem here but unfortunately it works fine.&lt;/p&gt;
&lt;p&gt;I've made my own sample. In my sample, I used FormatConditions feature. When I add a new row, the row have background color like I set on FormatConditions. &lt;span style="font-size: 10pt"&gt;Could you check my sample and tell me if I missed something in my configuration?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt"&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt"&gt;Bernard&lt;/span&gt;&lt;/p&gt;
</description></item><item><title>Color GroupHeaderRow to match ChildRow color</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Color-GroupHeaderRow-to-match-ChildRow-color/</link><pubDate>Fri, 29 Jun 2012 09:42:22 GMT</pubDate><dc:creator>RLG1</dc:creator><category>GroupHeaderRow</category><description>&lt;p&gt;Hi Bernard, Thanks for the reply.  I am replying before looking at your code so that you and others can review my expanded statement of requirements.&lt;/p&gt;
&lt;p&gt;In the simplest case, there is only one column in the data.&lt;/p&gt;
&lt;p&gt;Rows with value=1 have a green background, while rows with value=2 have a red background.  Other values have a default background color.  This is accomplished using FormatConditions.&lt;/p&gt;
&lt;p&gt;If I group by the column I will have a GroupHeaderRow for each value.&lt;/p&gt;
&lt;p&gt;Let us assume that adding a new row to a group will leave the group collapsed.&lt;/p&gt;
&lt;p&gt;When I add a new row with value=1 to the grid, I want the GroupHeaderRow for value=1 to have a green background, as determined by the FormatConditions when applied to the new row.  That is the first requirement.&lt;/p&gt;
&lt;p&gt;The second requirement is that when I add a new row with value=2, the GroupHeaderRow for value=1 should retain its green background, and the GroupHeaderRow for value=2 (per requirement 1) should have a red background.&lt;/p&gt;
&lt;p&gt;The third requirement is that when a Group is expanded after adding a new row, the background color should revert to the default background color.  The default color should remain until another new row is added to that group.&lt;/p&gt;
&lt;p&gt;So far I have not accomplished requirement 1.&lt;/p&gt;
&lt;p&gt;Now I will have a look at the code you sent.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Randy&lt;/p&gt;
&lt;p&gt; [Update]&lt;/p&gt;
&lt;p&gt;Bernard, I am not using a field named "FormatConditons", I am using the WebGrid FormatCondition feature.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Color GroupHeaderRow to match ChildRow color</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Color-GroupHeaderRow-to-match-ChildRow-color/</link><pubDate>Fri, 29 Jun 2012 04:55:30 GMT</pubDate><dc:creator>bernard</dc:creator><category>GroupHeaderRow</category><description>&lt;p /&gt;&lt;p&gt;Hi Randy,&lt;/p&gt;
&lt;p&gt;Could you explain me more detail about your grouping scenario? From your information that you describe, I only know that you want to group the data by FormatConditions and coloring the child row as determined by FormatConditions.&lt;/p&gt;
&lt;p&gt;I made my own sample to show the scenario that I knew from you. Could you check my sample and tell me if the scenario meet your condition or no?&lt;/p&gt;
&lt;p&gt;Look forward to hear any feedback from you so I can help you further.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bernard&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Color GroupHeaderRow to match ChildRow color</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Color-GroupHeaderRow-to-match-ChildRow-color/</link><pubDate>Thu, 28 Jun 2012 18:32:32 GMT</pubDate><dc:creator>RLG1</dc:creator><category>GroupHeaderRow</category><description>&lt;p&gt;I have a nonhierarchical WebGrid used for realtime data display.&lt;/p&gt;
&lt;p&gt;There are FormatConditions determining the background and foreground colors for the "Record" rows.&lt;/p&gt;
&lt;p&gt;When grouping is in effect, and a new "Record" row is added, I need to color its corresponding GroupHeaderRow to match its color - as determined by the FormatConditions.&lt;/p&gt;
&lt;p&gt;I have been trying to do this server-side beneath the OnInitializeRow handler, at the time the GroupHeaderRow rows are being initialized.  I can locate the new child in one of the groups without any problem, but it does not appear that its FormatConditions have been applied to its Style yet.&lt;/p&gt;
&lt;p&gt;Once this problem is solved I also need the GroupHeaderRow style to persist until either the group is expanded or a new "Record" row is added to the group.&lt;/p&gt;
&lt;p&gt;Anyone?  Thanks.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>