Hi All,
I am binding a report to viewer using code at run time.
report details and header are displaying well.
I want to show sum/count summary information of all columns within report in "GroupFooterSection".
I have written following code
Group Footer is not displaying on web.
Please provide help.
Thank you in advanced.
I am binding a report to viewer using code at run time.
report details and header are displaying well.
I want to show sum/count summary information of all columns within report in "GroupFooterSection".
I have written following code
Telerik.Reporting.ReportItemBase[] reportitmfooter = new ReportItemBase[ds.Tables[0].Columns.Count]; |
for (int i = 0; i < ds.Tables[0].Columns.Count; i++) |
{ |
//Fill the Group footer for show sum or count |
Telerik.Reporting.TextBox txtGroupFooter = new Telerik.Reporting.TextBox(); |
txtGroupFooter.Value = "=count([" + headcolumnname + "])"; |
txtGroupFooter.Name = "Sum" + headcolumnname; |
//textBoxDetails.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(xaxis, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(yaxis, Telerik.Reporting.Drawing.UnitType.Inch)); |
textBoxDetails.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(2, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0.5, Telerik.Reporting.Drawing.UnitType.Cm)); |
reportitmfooter[i] = txtGroupFooter; |
} |
//group footer |
Telerik.Reporting.GroupFooterSection groupFootersection = new GroupFooterSection(); |
groupFootersection.Height = new Telerik.Reporting.Drawing.Unit(0.2, Telerik.Reporting.Drawing.UnitType.Inch); |
groupFootersection.Style.BackgroundColor = System.Drawing.Color.Blue; |
groupFootersection.KeepTogether = true; |
groupFootersection.Visible = true; |
groupFootersection.Name = "rptGroupFooter"; |
groupFootersection.Items.AddRange(reportitmfooter); |
report.Items.Add(groupFootersection); |
Group Footer is not displaying on web.
Please provide help.
Thank you in advanced.