Binding Manager - great problem

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

In my TabPage2, there is TtlBaseAmt & ttlInvAmt (2 textbox), I will databind
that 2 textbox, and I got one button to sum up the invoice detail 's amount
, and put them into textbox
For Each drInvChg In drInvInfo.GetChildRows("fk_invno")
decTtlInvAmt += drInvChg.Item("invamt")
decTtlBaseAmt += drInvChg.Item("baseamt")
end for
Me.txtTtlInvAmt.text = decTtlInvAmt
Me.txtTtlBaeAmt.text = decTtlBaseAmt
After That I will perform the following codes:
CType(bmInvInfo.Current, DataRowView).Row("ttlbaseamt") =
CType(Me.txtTtlBaseAmt.Text, Decimal)
(a) MessageBox.Show(Me.txtTtlInvAmt.Text & " -" &
Me.txtTtlBaseAmt.Text)
CType(bmInvInfo.Current, DataRowView).Row("ttlinvamt") =
CType(Me.txtTtlInvAmt.Text, Decimal)
(b) MessageBox.Show(Me.txtTtlInvAmt.Text & " -" &
Me.txtTtlBaseAmt.Text)

In part(a), I can see both text value, BUT in part(b), I found that
Me.txtTtlInvAmt.text become zero !!!!
How comes, Does anyone got some idea.
I spend 2 days to check and go through the coding, and really got no idea
to solve it.
[If I didn't perform part(a) & part(b), As the user click to Page1, BOTH
textbox also gone to zero]
 
I think I solve my problem,please ignore it . [Let me spend One more night
to try it again] ~
 

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