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
220
Can you set a summary row to be fixed and not scroll?
posted

I've tried everything but still can't figure out how to make this happen. Is it even possible?
What I want is the summary to always be visible in the grid and not scroll down with the data.

This is the code I'm using to create/add the summary, which is nothing special, it just seems that in the end I should be able to somehow add it as a fixed row - but I can't figure out how.

const string totalSummaryKey = "SummaryKey";
if (!band.Summaries.Exists(totalSummaryKey))
{
SummarySettings totalSummary = band.Summaries.Add(
totalSummaryKey,
SummaryType.Sum, amountColumn, SummaryPosition.UseSummaryPositionColumn);
totalSummary.SummaryPositionColumn = totalSummary.SourceColumn;

// formatting the summary
totalSummary.DisplayFormat = "{0:$#,###.##}";
var summaryOverride = totalSummary.Band.Override;
summaryOverride.SummaryFooterCaptionVisible = DefaultableBoolean.False;
summaryOverride.BorderStyleSummaryFooter =
UIElementBorderStyle.None;
summaryOverride.FixedRowStyle =
FixedRowStyle.Bottom;
summaryOverride.FixedRowsLimit = 1;
//e.Layout.Rows.FixedRows.Add(); ?? can we lock the summary here?
}