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
935
How to Change Summary Row Name in Code Behind
posted

Hi this below code display summary in my webdatagrid. I am looking  for ways how can i change the Summary Name Like Sum to Total FG Summary something like that.

Thanks in Regards

 

 SummaryRow fs = WebDataGridPicklistBatch.Behaviors.CreateBehavior<SummaryRow>();

 

            //add default summaries

            if (!this.IsPostBack && fs != null)

            {

                ColumnSummaryInfo info1 = new ColumnSummaryInfo();

                info1.ColumnKey = "FGQuantity";

                info1.Summaries.Add(SummaryType.Sum);

                fs.ColumnSummaries.Add(info1);

 

                ColumnSummaryInfo info2 = new ColumnSummaryInfo();

                info2.ColumnKey = "POQuantity";

                info2.Summaries.Add(SummaryType.Sum);

                fs.ColumnSummaries.Add(info2);

            }