Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/01/2012, 17:08
chino_black
 
Fecha de Ingreso: mayo-2011
Mensajes: 36
Antigüedad: 13 años
Puntos: 0
Respuesta: Cambiar imagen de celda en GridView

Oka tengo esto.

Código:
For Each row2 As GridViewRow In grid_tareas.Rows

fecha2 = CStr(row2.Cells(15).Text.ToString)

If (fecha2.Length < 7) Then
      row2.Cells(5).Enabled = False
      row2.Cells(5).BackColor = Drawing.Color.DarkRed
End if

Next

Lo probe con un ButtonType="Button" y ahí si funciona. pero en un ButtonType="Image" no funciona??

Código:
<asp:ButtonField ButtonType="Button" CommandName="ver" Text="Ver"/>

<asp:ButtonField ButtonType="Image" CommandName="descargar" ImageUrl="~/Imagenes/descargar.png" />
Saludos.