Hi
I have a xamWebGrid that has a summary row or column, and I have it summing up a column. but the text on the header is "Sum= 123245".
is there a way to get rid of the "Sum=" key word?
how can I format the summary row?
Thanks in advance for your help
Bakr
Hi,
To remove the "=" sign you'll need to change the style of the SummaryRowCellControls.
I attached a sample on how to do that.
Hope that helps
Hi Geogi,
It is nice example and working as expected. We need one more thing that we want to add a heading also in summary row. for details please check attached image.
Thanks
If I understand you correctly, you want to use the Summary Cell of a specific column to display some text, and use the Summary Cells for other columns to display actual summaries. Is that correct ?
Also, could you specify which version you're using ? If you're using version 11.2, there's a property off the SummaryColumnSettings class that allows you to specify a custom style for the Summary Cells on a per-column basis:
<igGrid:TextColumn Key="MyColumn"> <igGrid:TextColumn.SummaryColumnSettings> <igGrid:SummaryColumnSettings SummaryRowCellStyle="{StaticResource style}" /> </igGrid:TextColumn.SummaryColumnSettings></igGrid:TextColumn>
Using this property you can change the template of the summary cell for any particular column, adding your text there.
Hope this helps,
Hi Georgi,
Yes we are using 11.2, Let me check SummaryRowCellStyle property, hope with its help we will be better able to handle the format requirements. At the moment we have used a custom summary operator just to show required text heading