mercredi 23 décembre 2015

One or more rows contain values violating non-null, unique, or foreign-key constraints

enter image description here

when i Click on Print button the Above Exception through RvCustomerBill.Visible = true;

                RvCustomerBill.Visible = true;                 
                Medical.MedicalDBFDataSetTableAdapters.CUSTOMERBILLTableAdapter adapter = new Medical.MedicalDBFDataSetTableAdapters.CUSTOMERBILLTableAdapter();
                MedicalDBFDataSet.CUSTOMERBILLDataTable table = new MedicalDBFDataSet.CUSTOMERBILLDataTable();
                adapter.FillBy(table,txtBillId.Text);
                ReportDataSource ReportSource = new ReportDataSource("CustomerBillReportDataSet", (DataTable)table);
                RvCustomerBill.ProcessingMode = ProcessingMode.Local;
                RvCustomerBill.LocalReport.DataSources.Clear();
                RvCustomerBill.LocalReport.DataSources.Add(ReportSource);
                RvCustomerBill.LocalReport.Refresh();
                RvCustomerBill.RefreshReport();

Aucun commentaire:

Enregistrer un commentaire