private void LoadData() { _supplies.Rows.Clear(); List <SupplyVM> supplies = _supplyDao.GetSupplies(); foreach (SupplyVM supply in supplies) { _supplies.Rows.Add(supply, supply.Name, supply.Stock, supply.RealStock, Utils.FormatDate(supply.lastTimeSupplied), "Edit"); } AddColorToStock(supplies.Count); }