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