private void statementOfAcount_Load(object sender, EventArgs e) { try { BL.Customer.statementOFAcount soa = new BL.Customer.statementOFAcount(); this.dataGridView1.DataSource = soa.GetStatement(CustomerNo); } catch (Exception ex) { MessageBox.Show(ex.Message); } }