CurrencyManager Issue.

  • Thread starter Thread starter Manuel Canas
  • Start date Start date
M

Manuel Canas

Hi there,

I have a form with a couple of tabs on in and I'm filling the form from a
dataset with the fill method. I am using a currency manager for binding
controls with a datatable.
mCurrencyManager = Me.BindingContext(dtTestTable)

dtTestTable holds the table that loading on the form.

I'm filling a listbox with names and the corresponding data gets displayed
on the right side of the form. kind of a treeview interface.



Now my problem is when I want to add a new record to the database, when I
invoke the mCurrencyManager.EndCurrentEdit() and then the
mCurrencyManager.AddNew method, the form or at least the current record does
not get blanked. on the listbox it goes to the end of it with a blank line
but it just does not end the current edit.

I have been trying so many things to find out why for the life of me, the
currency manager does respond to the .addnew method or EndCurrentEdit.

Can anybody out there tell or give some hints on how to make this work?

Thanks very much in advance,

Manny.
 
Try this syntax:

mCurrencyManager = CType(Me.BindingContext(dtTestTable)), CurrencyManager)
 
Hi Manuel,

Do us a favor in the dotNet newsgroup, do not multipost (sending more
messages to more newsgroups).

Crossposting, sending one message to more newsgroups is no problem.

When we know you do multipost, you probably get no answer anymore because
maybe it is useless. In this case I was starting to make a sample for your
problem to post it in the language.vb group, however now I wait a while,

I do not know to what place you did send your message more and maybe you
have your answer already and I do not like working useless.

I hope you understand that?

Cor
 
In the meantime I had already sended an answer in the language.vb group
before someone understand it wrong.

My guessing is that it is the using of a dataset as the currencymanager
while the dataview is used for the binding.

I do the rest of the answering in the language.vb group and not in this one.

Cor
 
Back
Top