Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/09/2011, 11:22
guillebomtrasmiti
 
Fecha de Ingreso: noviembre-2010
Ubicación: madrid
Mensajes: 478
Antigüedad: 13 años, 5 meses
Puntos: 5
Respuesta: permitir valor nulo o vacio

la opción de marquez daba un error, así que probé con la de super aqua...y correcto..gracias a los dos os lo agradezco millones de veces...pongo la solución para quien lo necesiteee

Cita:
If String.IsNullOrEmpty(DataGridView1.CurrentRow.Cell s(55).FormattedValue.ToString) Then
TBRef1.Text = String.Empty
Else
TBRef1.Text = DataGridView1.CurrentRow.Cells(55).Value
End If
If String.IsNullOrEmpty(DataGridView1.CurrentRow.Cell s(56).FormattedValue.ToString) Then
TbRef2.Text = String.Empty
Else
TbRef2.Text = DataGridView1.CurrentRow.Cells(56).Value
End If
If String.IsNullOrEmpty(DataGridView1.CurrentRow.Cell s(57).FormattedValue.ToString) Then
TbRef3.Text = String.Empty
Else
TbRef3.Text = DataGridView1.CurrentRow.Cells(57).Value
End If