Hi I am gettting an error from the following code block - all i want to do is add the total amount paid per row in the gridview and display it in lblTotal? So effectivly lblTotal.text should store a running total of payments. Protected Sub gvHistory_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvHistory.RowDataBound
Dim lblTotal As Label = TryCast(e.Row.FindControl("lblTotal"), Label)
Dim lblAmountPaid As Label = TryCast(e.Row.FindControl("lblAmountPaid"), Label)
Dim strAmountPaid As String = 0
strAmountPaid = strAmountPaid + lblAmountPaid.Text
lblTotal.Text = FormatCurrency(strAmountPaid, 2)
End S ...
Go to the complete details ...