private void Refresh() {//refetch current records... long selectedAutoID = SelectedWarehouse.AutoID; string autoIDs = ""; //bool isFirstItem = true; foreach (Warehouse item in WarehouseList) {//auto seeded starts at 1 any records at 0 or less or not valid records... if (item.AutoID > 0) { autoIDs = autoIDs + item.AutoID.ToString() + ","; } } if (autoIDs.Length > 0) { //ditch the extra comma... autoIDs = autoIDs.Remove(autoIDs.Length - 1, 1); WarehouseList = new BindingList <Warehouse>(_serviceAgent.RefreshWarehouse(autoIDs).ToList()); SelectedWarehouse = (from q in WarehouseList where q.AutoID == selectedAutoID select q).FirstOrDefault(); Dirty = false; AllowCommit = false; } }