Problem in CurrencyManager
-
For some reason, the CurrencyManager will not let me remove the last item in the collection. For example, if I have a CurrencyManager bound to a collection with a Form and Control bound to the CurrencyManager. I can remove any item from the CurrencyManager just fine with RemoveAt. However, if it is the last item , it simply ignores the call. It doesn't throw and error, it simply doesn't do anything. Count remains Same, Position remains 0. Even if I try calling CurrencyManagerVar.List.Clear(), it ignores the call. Again, no error, just doesn't do anything. But in my Another form it has worked fine with CurrencyManager.RemoveAt(CurrencyManger.Position) Any Problem in my code? My code is : CurrencyManager.RemoveAt(CurrencyManager.Position) I have also tried with Dataview.Delete(CurrencyManager.Position) And Dataview.Delete(CurrencyManager.Count-1) And also with DatarowView = CurrencyManager.Current DataTable.Remove(DatarowView.row) above all are not working rugfy