 
			
				15/01/2006, 07:32
			
			
			     |  
      |    |    |    Fecha de Ingreso: febrero-2002  
						Mensajes: 58
					  Antigüedad: 23 años, 8 meses Puntos: 0     |        |  
        Solucionado. Cambiar el icono de una celda        Ya esta solucionado, por si le ocurre a alguien hay que utilizar el evento CellFormatting.    
    Private Sub DGV_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEve  ntArgs) Handles DGV.CellFormatting   
        Dim Celda As String 
        If Valor = 1 Then 
            If e.ColumnIndex = 0 Then   
                Celda = Me.DGV.Rows(e.RowIndex).Cells(1).Value 
                Select Case Celda 
                    Case "Rojo" 
                        e.Value = New Bitmap(Imagen20x20.Images.Item(2))  
                    Case "Azul" 
                        e.Value = New Bitmap(Imagen20x20.Images.Item(1))  
                    Case Else 
                        MsgBox("Sesion fuera de rango") 
                End Select   
            End If 
        End If   
    End Sub     
Saludos 
Mafc           |