﻿<?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 - Overwrite GroupRowInfoText?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Overwrite-GroupRowInfoText/</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>Overwrite GroupRowInfoText?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Overwrite-GroupRowInfoText/</link><pubDate>Wed, 24 Feb 2010 02:25:53 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;blockquote&gt;&lt;p&gt;... but I can only overwrite the GroupRowInfoText&amp;nbsp; for the first cell e.row.cells(0).GroupRowInfoText. Is this even possible?...&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Group row header is a row with a single cell. You will not be able to access column n of group row header since it only contains a single cell.&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;... We're trying to put the group totals at the header row instead of the footer row...&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;If you wish to put the group total at group row header rather than in group footer row, you can specify the group row info format with the built-in aggregate function. Example:&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="color: #ff0000"&gt;GroupRowInfoFormat&lt;/span&gt;&lt;span style="color: #0000ff"&gt;="[value] - Total Orders: [count] items. Average Freight: [avg(Freight)]"&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;For more detail, please check “DisplayAggregateinGroupHeader.aspx” sample file in WebGridSamples project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;If you have different scenario, could you please enclose a screenshot (as attachment) that shows the expected result (the location where the group total expected to appear)?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Overwrite GroupRowInfoText?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Overwrite-GroupRowInfoText/</link><pubDate>Tue, 23 Feb 2010 17:54:42 GMT</pubDate><dc:creator>pmdaniel</dc:creator><description>&lt;p&gt;I am trying to write a value into a group header for a column that is not the first column in the group header. I can't get access to any column other than the first one. In the case below, I want to total mMarketValue which is the 8th column in the grid, but I can only overwrite the GroupRowInfoText  for the first cell e.row.cells(0).GroupRowInfoText. Is this even possible?  We're trying to put the group totals at the header row instead of the footer row. I'm close, if only I can set header values for each column. &lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Select&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Case&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; e.Row.Type &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Case&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;span style="font-size: 13px"&gt;RowType.GroupHeader&lt;/span&gt;&lt;/span&gt; &lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;For&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Each&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; r &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;As&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; WebGridRow &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;In&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; e.Row.Children &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;If&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; r.Type = RowType.Record &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Then&lt;/span&gt;&lt;/span&gt; 
&lt;p&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 13px"&gt;mkt &amp;#43;= &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;CType&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;(r.Cells.GetNamedItem(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"mMarketValue"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;).Value, &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Double&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;) &lt;p&gt;colPosition = r.Cells.GetNamedItem(&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"mMarketValue"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;).Position&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"mMarketValue"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;).Position&lt;/span&gt; 
&lt;p&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;span style="color: #008000; font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;End&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;If &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; r &lt;p&gt;e.Row.Cells(colPosition).GroupRowInfoText = &lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"testing: "&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &amp; mkt&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"testing: "&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &amp; mkt&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;End&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;Select &lt;/span&gt;&lt;/span&gt;</description></item></channel></rss>