Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/02/2009, 05:06
Avatar de mdavila
mdavila
 
Fecha de Ingreso: julio-2007
Ubicación: Montevideo (Uruguay)
Mensajes: 919
Antigüedad: 17 años, 6 meses
Puntos: 13
Respuesta: gridview cambiar color celda según valor

Lo podes hacer dentro del evento ItemDataBound de tu grilla.

Ejemplo:


If (e.Item.ItemType <> ListItemType.Header And e.Item.ItemType <> ListItemType.Pager) Then

'aca pone un if antes para controlar si es negativo o positivo ok
e.Item.Cells(IndicePintar).BackColor = Color.FromName("#014674")

'else el otro color ok

End if