private void formPucrchase_Load(object sender, EventArgs e)
        {
            this.MinimumSize = this.Size;

            DAL.Pucrchase pucrchase = new Pucrchase();
            pucrchase.Search    = textBoxSearch.Text;
            proGrid1.DataSource = pucrchase.Select().Tables[0];
        }
        private void formPucrchaseReport_Load(object sender, EventArgs e)
        {
            this.MinimumSize = this.Size;

            DAL.Pucrchase pucrchase = new Pucrchase();
            //proGrid1.DataSource = pucrchase.Select().Tables[0];

            //ReportDocument reportDocument = new ReportDocument();
            CrystalReportPurchase pr = new CrystalReportPurchase();

            pr.Database.Tables["Purches"].SetDataSource(pucrchase.Select().Tables[0]);
            //reportDocument.Load("C:\\Users\\Sunil\\Documents\\Visual Studio 2013\\Projects\\Windows Form\\Point Of Sale\\Point Of Sale\\Point Of Sale\\Presentation\\PucrchaseReport.rpt");
            crystalReportPucrchase.ReportSource = pr;
            crystalReportPucrchase.Refresh();
        }
 private void textBoxSearch_TextChanged(object sender, EventArgs e)
 {
     DAL.Pucrchase pucrchase = new Pucrchase();
     pucrchase.Search    = textBoxSearch.Text;
     proGrid1.DataSource = pucrchase.Select().Tables[0];
 }