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
490
Summary values are not showing up in footer
posted

Hi,

Summary values are not showing up in footer, please help. sample code listed below.

wbgdata1.Behaviors.CreateBehavior<SummaryRow>();

this.wbgdata1.Columns[1].Footer.Text = "Totals:";

//Summary Footer for Cartons

SummaryRowSetting BNCartonsSummary = new SummaryRowSetting(wbgdata1, "DDCARG");

BNCartonsSummary.ShowSummaryButton = false;

BNCartonsSummary.SummarySettings.Add(SummaryType.Sum);

this.wbgdata1.Behaviors.SummaryRow.ColumnSettings.Add(BNCartonsSummary);

wbgdata1.ShowFooter = true;


Thanks.

Parents
  • 490
    Offline posted

    Hi,

    Tried adding the following code and getting the error "cannot convert from infragistics.web.ui.gridcontrols.summaryrowsetting to string". Column is defined as integer, not sure why I am getting this error.

    this.wbgdata1.Behaviors.SummaryRow.ColumnSummaries.Add(BNCartonsSummary);


    I am getting the same error for the code below also.


    ColumnSummaryInfo BNCartonsSummary1 = new ColumnSummaryInfo();

    BNCartonsSummary1.ColumnKey = "DDCARG";

    BNCartonsSummary1.Summaries.Add(SummaryType.Sum);

    wbgdata1.Behaviors.SummaryRow.ColumnSummaries.Add(BNCartonsSummary1);

    Please help.

    Thanks.


Reply Children