|
Data loading error! Object cannot be converted from DBunll to its type. Error # 13 #
Debug runningsun value is OD
Public runningsum As Double
Private Sub DataGrid2_ItemDataBound (ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid2.ItemDataBound
'Dim runningSum As Single
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
runningsum + = Convert.ToDouble (DataBinder.Eval (e.Item.DataItem, "jshj"))
ElseIf e.Item.ItemType = ListItemType.Footer Then
'e.Item.Cells (3) .Text = "<b> Signed total amount: </ b>" + String.Format ("{0: c}", runningsum)
End If
End Sub |
|