Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/03/2008, 16:01
Avatar de jlbautista
jlbautista
 
Fecha de Ingreso: enero-2007
Ubicación: Durango, Méx.
Mensajes: 175
Antigüedad: 17 años, 3 meses
Puntos: 1
Re: controlar que no se ingrese información repetida

Corregido y Aumentado

Código:
Private Sub DataGridView1_UserAddedRow(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewRowEventArgs) Handles DataGridView1.UserAddedRow
        Try
            For i As Integer = 0 To DataGridView1.Rows.Count
                If DataGridView1.Item(1, DataGridView1.CurrentRow.Index).EditedFormattedValue = DataGridView1.Item(1, i).Value Then
                    DataGridView1.CancelEdit()
                End If
            Next
        Catch ex As Exception

        End Try
    End Sub
Dale gracias al Ocio q tengo
Mismas indicaciones de arriba, en cuanto al color ROJO

Espero te sirva