Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/06/2012, 19:54
matiasgallardo18
 
Fecha de Ingreso: febrero-2012
Ubicación: Cordoba
Mensajes: 30
Antigüedad: 12 años, 2 meses
Puntos: 0
Como sumas columna de una grilla

La grilla ya fue cargado por un procedimiento.

este es mi código y me figura el siguiente error: Referencia a objeto no establecida como instancia de un objeto.

Dim total1 As String = ""
If e.Row.RowType = DataControlRowType.DataRow Then
total = total + e.Row.Cells(3).Text
End If

If e.Row.RowType = DataControlRowType.Footer Then
GridView3.FooterRow.Cells(3).Text = total.ToString("#,##0.00")
End If



Todo esta dentro de GridView_rowdataBound.

Espero me puedan ayudar