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]
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]