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