Add blank row programatically in XrTable (XtraReport)?

2.2k views Asked by At

I have 6 records of data and want to add 4 blank rows more to make a list of 10 rows in the run-time. What must I do?

1

There are 1 answers

4
Niranjan Singh On

For data source modification procedure in the BeforePrint event.. Refer to the sample code snippet:

void report1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e) {
            DataDataSet ds = new DataDataSet();
            this.sitE_SummaryTableAdapter1.Fill(ds.SITE_Summary);
            foreach (DataDataSet.SITE_SummaryRow row in ds.SITE_Summary) {
                double val = Convert.ToDouble(row["SITE_Summary.Heating_Energy_Transfer"]);
                row["SITE_Summary.Heating_Energy_Transfer"] = convertTemperature(val, true);
            }
            this.report1.DataSource = ds;
        }