Problem with CurrencyManager.RemoveAt

  • Thread starter Thread starter Thomas C
  • Start date Start date
T

Thomas C

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 (so Position = 0), it simply ignores the call. It
doesn't throw and error, it simply doesn't do anything. Count remains 1,
Position remains 0. Even if I try calling currencyManagerVar.List.Clear(),
it ignores the call. Again, no error, just doesn't do anything.

Any ideas what could cause this?


Thomas
 
Doah...nevermind. RemoveAt was firing a change that triggered an add.


Thomas C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top