public void RefreshDG() { Admin Auto = new Admin(); tbItemNumber.Text = Auto.InventoryAutoGenerateID(); Admin Show = new Admin(); dgAllItem.DataSource = Show.InventoryDGV(); dgAllItem.DataMember = "Inventory"; dgSearchItem.DataSource = Show.InventoryDGV(); dgSearchItem.DataMember = "Inventory"; dgEditItem.DataSource = Show.InventoryDGV(); dgEditItem.DataMember = "Inventory"; tbEditAddStock.Enabled = false; }