예제 #1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            DataTable dtt = TakesTable.GetTableForSearch(txtId.Text);
            DataView  dtv = new DataView(dtt);

            dgvTakes.DataSource = dtv;
        }
예제 #2
0
        public frmReportTakeCar(int numTake)
        {
            InitializeComponent();
            TakesTable    curentTakeTable = new TakesTable();
            BindingSource bsReport        = new BindingSource();

            bsReport.DataSource = curentTakeTable.GetTableForReportTakes(numTake);
            //ReportDataSource rdsouse = new ReportDataSource();
            //rdsouse.Name = "DataSet4";
            //rdsouse.Value = bsReport;
            //reportViewer1.LocalReport.DataSources.Add(rdsouse);
        }