Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
760
Summary row values are not displaying instead showing "--"
posted

Hi Team,

 

I have a webhierarchical grid with Bands. In the Band behaviors i'm adding a summary row. But the summary row is getting calculated when I debug the CacluateSummary method in code behind. but the value is not getting displayed in the page instead it is showing "--" in the last column. I tried to display the text, speacified datatype for databound columns, removed dataformatstring, created columnsettings and columnsummaries. But nothing is helping me out. Please help me in providing the solution.

<

Bands

>

<ig:Band AutoGenerateColumns="false" DataKeyFields="SubRowId" DataMember="SubRows"

ShowHeader="false" ShowFooter="false">

<Columns>

<ig:BoundDataField DataFieldName="SubRowId" Key="SubRowId" Header-Text="SubRowId"

Hidden="true" />

<ig:BoundDataField DataFieldName="Type" Key="Type" Header-Text="Type" Width="175px" />

<ig:BoundDataField DataFieldName="RowTotalMonth1" Key="RowTotalMonth1" Header-Text="Month1"

Width="70px" CssClass="AlignRight" DataType="System.Decimal"/>

<ig:BoundDataField DataFieldName="RowTotalMonth2" Key="RowTotalMonth2" Header-Text="Month2"

Width="70px" CssClass="AlignRight" DataType="System.Decimal"/>

<ig:BoundDataField DataFieldName="RowTotalMonth3" Key="RowTotalMonth3" Header-Text="Month3"

Width="70px" CssClass="AlignRight" DataType="System.Decimal" />

</Columns>

<Behaviors>

<ig:Paging Enabled="false" PagerAppearance="Bottom" PageSize="10" PagerMode="NextPreviousFirstLast" />

<ig:Sorting Enabled="false" />

<ig:SummaryRow Enabled="true" EnableInheritance="true">

<ColumnSummaries>

<ig:ColumnSummaryInfo ColumnKey="RowTotalMonth1">

<Summaries>

<ig:Summary SummaryType="Sum" />

</Summaries>

</ig:ColumnSummaryInfo>

<ig:ColumnSummaryInfo ColumnKey="RowTotalMonth2">

<Summaries>

<ig:Summary SummaryType="Sum" />

</Summaries>

</ig:ColumnSummaryInfo>

<ig:ColumnSummaryInfo ColumnKey="RowTotalMonth3">

<Summaries>

<ig:Summary SummaryType="Sum" />

</Summaries>

</ig:ColumnSummaryInfo>

</ColumnSummaries>

<ColumnSettings>

<ig:SummaryRowSetting ColumnKey="RowTotalMonth1" Enabled="true">

<SummarySettings>

<ig:SummarySetting SummaryType="Sum" CssClass="RedTextCell" />

</SummarySettings>

</ig:SummaryRowSetting>

<ig:SummaryRowSetting ColumnKey="RowTotalMonth2" Enabled="true">

<SummarySettings>

<ig:SummarySetting SummaryType="Sum" CssClass="RedTextCell" />

</SummarySettings>

</ig:SummaryRowSetting>

<ig:SummaryRowSetting ColumnKey="RowTotalMonth3" Enabled="true">

<SummarySettings>

<ig:SummarySetting SummaryType="Sum" CssClass="RedTextCell" />

</SummarySettings>

</ig:SummaryRowSetting>

</ColumnSettings>

</ig:SummaryRow>

</Behaviors>

</ig:Band>

Please help me at the earliest.