Beispiel #1
0
        private void bootstrapButton1_Click(object sender, EventArgs e)
        {
            var data = gridControl1.DataSource as IList <QuotationDetail>;

            if (data == null || data.Count < 1)
            {
                return;
            }
            var data2 = new List <QuotationDetail>(data);
            var data1 = data[0];

            for (int i = 0; i < 10; i++)
            {
                data2.Add(data1);
            }
            Report.Reportmain report  = new Report.Reportmain();
            IReportUtility    ireprot = new ReportUtility(report);

            ireprot.Binding(report.bindingSource1, data2);
            ireprot.ShowPreview();
        }