public void FillInvoiceGrid() { try { List <FBFoodInventoryInfo> items; FBFoodInventoryController controller = new FBFoodInventoryController(); //items = controller.FBSuppliers_List(this.ModuleId); items = controller.FBInvoice_List(this.ModuleId); gvInvoices.DataSource = items; gvInvoices.DataBind(); lblTotalRecordCount.Text = items.Count.ToString(); } catch (Exception ex) { Exceptions.ProcessModuleLoadException(this, ex); } }