PC Review


Reply
Thread Tools Rate Thread

Currency Manager Issue.

 
 
Manuel Canas
Guest
Posts: n/a
 
      9th Jul 2004
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.


 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      10th Jul 2004
> 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.
>

Hi Manuel I assume you are talking about the dataset(datatable) instead of
the real database.

What the behaviour should be is that there is added a new blank line at the
end of the dataset which is showed at the end of the listbox. And I think
that that is happening, therefore what is it that you want to archieve?

Cor

Cor


 
Reply With Quote
 
Manuel Canas
Guest
Posts: n/a
 
      10th Jul 2004
Hey Cor,

Sorry I meant the dataset(datatable). when I execute the
mCurrencyManager.AddNew method, the blank line gets added at the end of the
listbox, but all the binded records don't get cleared, it stays at the
current one. I don't have any check boxes and I know there's a bug on the
framework but there's a solution for that one anyways.

I have two fields that are of money type on the database plus the id on the
table.

txtTextID.DataBindings.Add("Text", dvTest1, "TestID") integer on the
database
txtTextID.DataBindings.Add("Text", dvTest2, "Test2ID") money on the database

Could this be the problem? the .AddNew not recognizing or not being able to
convert this ones into the proper database type ?

Thanks very much,

Manuel



"Manuel Canas" <(E-Mail Removed)> wrote in message
news:c5FHc.16026$eO.10596@edtnps89...
> 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.
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      10th Jul 2004
> txtTextID.DataBindings.Add("Text", dvTest1, "TestID") integer on the
> database
> txtTextID.DataBindings.Add("Text", dvTest2, "Test2ID") money on the

database

I saw it in the other newsgroup, probably you did not do
cma = Directcast(BindingContext(dvTest2), CurrencyManager)

And please no multipost again

I hope this helps?

Cor






 
Reply With Quote
 
Manuel Canas
Guest
Posts: n/a
 
      10th Jul 2004
Sorry Cor. No more multipostings.

>I saw it in the other newsgroup, probably you did not do
>cma = Directcast(BindingContext(dvTest2), CurrencyManager)


what would be the cma? what command?

Thanks,

Manuel


"Manuel Canas" <(E-Mail Removed)> wrote in message
news:c5FHc.16026$eO.10596@edtnps89...
> 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.
>
>



 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      11th Jul 2004
You use a currencymanger somewhere however I think that you use it in
combination with the dataset(table) while you use for the databinding the
dataview.

Than you get the behaviour as you describe.

So I gues that it is that, othwerwise show some more code?

I hope this helps?

Cor
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding Manager/Currency Manager Problem? Jim Microsoft VB .NET 1 5th Jan 2008 09:30 AM
Currency Manager Hemang Shah Microsoft ADO .NET 9 9th Apr 2007 11:15 PM
currency manager Theodore Microsoft VB .NET 5 27th Jan 2006 10:59 AM
Currency Manager =?Utf-8?B?QXJ0?= Microsoft VB .NET 1 8th Jun 2005 10:42 PM
currency manager and binding manager Agnes Microsoft VB .NET 2 19th Oct 2004 08:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:45 AM.