private void loadGrid_Report(int id) { SaleInvoice repository = new SaleInvoice(); var result = repository.getProductByCustomer(id); if (result.Count > 0) { gridProduct.DataSource = result; gridProduct.DataBind(); gridProduct.Visible = true; } else { gridProduct.Visible = false; this.ShowWarningNotification("No data found"); } }