![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
21/09/2011, 09:00
|
![Avatar de mvazquez](http://static.forosdelweb.com/customavatars/avatar78099_2.gif) | | | Fecha de Ingreso: octubre-2004 Ubicación: Monterrey - México
Mensajes: 875
Antigüedad: 20 años, 3 meses Puntos: 8 | |
Respuesta: permitir valor nulo o vacio Hola Colega..
Intenta con esto:
TbRef3.Text = DataGridView1.CurrentRow.Cells(57).Value == ""? "": DataGridView1.CurrentRow.Cells(57).Value
Es como si hicieras un IF
IF (DataGridView1.CurrentRow.Cells(57).Value == "" )
{TbRef3.Text=""}
Else
{TbRef3.Text = DataGridView1.CurrentRow.Cells(57).Value }
Solo valida si DataGridView1.CurrentRow.Cells(57).Value te da vacio ("") o te da (null) y has la comparacion segun el caso.
Espero te sea de utilidad. |