Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/03/2011, 08:18
chuchufuentes
 
Fecha de Ingreso: mayo-2008
Mensajes: 353
Antigüedad: 16 años, 7 meses
Puntos: 3
Respuesta: colocar saldo rojo en columna de gridview

Gracias por responder,pero me genera otro error


Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:


Line 64: Protected Sub gv1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gv1.RowDataBound
Line 65: If (e.Row.RowType <> ListItemType.Header And e.Row.RowType <> ListItemType.Pager) Then
Line 66: If CType(e.Row.Cells("saldo").Text, Integer) > 0 Then
Line 67: e.Row.Cells("saldo").BackColor = Drawing.Color.Red
Line 68: End If

pero por aquí es la solución, estamos cerca de lograrlo