I find my problem [It seems I need to update the mastertable "InvoiceTable"
first ]
otherwise , I can't sum up the detail tables , Really ??
"Agnes" <(E-Mail Removed)> 在郵件
news:%(E-Mail Removed) 中撰寫...
> I got master-detail datatable
> in my datagrid (invoicedetail) , I want to (as the user type the unit
price
> or no of unit), the amount will be caculated and the TOTAL amount can be
> update too.
>
> In my columnchanged event
> e.Row("invamt") = e.Row("unitprice") * e.Row("noofunit") *
> e.Row("exrate")
>
> drInvInfo =
> Me.dsSeaInvInfo.Tables("invoiceHeader").Rows(bmSeaInvInfo.Position)
> For Each drInvCharges In drInvInfo.GetChildRows("fk_invno")
> decTtlAmt = decTtlAmt + drInvCharges("invamt") <--- it
> seems fail
> Next
> Me.txtTotalAmt.Text = decTtlAmt
> Please help~~
>
>
|