Ragazzi scusatemi ma non capisco cosa c'è di sbagliato in questo codice per mostrare il totale in un footer del datagrid.

Nell'itemdatabound ho inserito questo codice, ma mi viene restituito sempre zero:

Sub BoundDgrCarrello(ByVal sender As Object, ByVal e As DataGridItemEventArgs)

If e.Item.ItemType = ListItemType.Item And e.Item.ItemType = ListItemType.AlternatingItem Then

Totale = CType(e.Item.FindControl("LblPrezzo"), Label).Text

End If

If e.Item.ItemType = ListItemType.Footer Then

e.Item.Cells(3).Text = "Euro " & Totale

End If


End Sub

Sopra a tutto ho dichiarato
Private Totale as double

In cosa sbaglio?
Grazie a tutti