![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
14/07/2008, 12:51
|
![Avatar de mdavila](http://static.forosdelweb.com/customavatars/avatar190386_1.gif) | | | Fecha de Ingreso: julio-2007 Ubicación: Montevideo (Uruguay)
Mensajes: 919
Antigüedad: 17 años, 6 meses Puntos: 13 | |
Respuesta: GridView... filas que cambien de color... En el evento ItemDataBound de tu grilla podes controlarlo y preguntar por alguna condicion que tengas en el row y ponerle algo html.
Por ejemplo:
If (e.Item.ItemType <> ListItemType.Header And e.Item.ItemType <> ListItemType.Pager) Then
'aca pongo un color diferente ok, solo pregunta por algo y listo
If TuCondicion 'Ejemplo: DataBinder.Eval(e.Item.DataItem, "Resaltar") resaltar es un campo oculto en la grilla y es booleano
e.Item.BackColor = Color.FromName("#E2EED2")
End If
End If |