private void BindataToRpt() { InvoiceDetails obj = new InvoiceDetails(); rptInvoiceDetails.DataSource = obj.getAll(); rptInvoiceDetails.DataBind(); }