private void btnSearch_Click(object sender, EventArgs e) { DataTable dtt = TakesTable.GetTableForSearch(txtId.Text); DataView dtv = new DataView(dtt); dgvTakes.DataSource = dtv; }
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); }