private void Refresh() {//refetch current records... long selectedAutoID = SelectedWarehouseLocation.AutoID; string autoIDs = ""; //bool isFirstItem = true; foreach (WarehouseLocation item in WarehouseLocationList) {//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); WarehouseLocationList = new BindingList <WarehouseLocation>(_serviceAgent.RefreshWarehouseLocation(autoIDs).ToList()); SelectedWarehouseLocation = (from q in WarehouseLocationList where q.AutoID == selectedAutoID select q).FirstOrDefault(); Dirty = false; AllowCommit = false; } }