Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/06/2009, 17:36
Zafer
 
Fecha de Ingreso: abril-2007
Mensajes: 63
Antigüedad: 17 años, 10 meses
Puntos: 0
Respuesta: ayuda con diferentes color de texto en un gridview

Hola,

mira lo que puedes hacer es usar la propiedad rowdatabound de la grilla te envio un ejemplo...

Protected Sub grilla_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles grilla.RowDataBound
If e.Row.Cells(0).Text.Trim.Length > 0 And Not e.Row.Cells(0).Text.Trim = "&nbsp" Then
If e.Row.Cells(0).Text.Trim = "obsoleto" Then
e.Row.Cells(0).BackColor = Drawing.Color.Red
End If
End If
End Sub

saludos,