
26/10/2009, 23:39
|
 | | | Fecha de Ingreso: noviembre-2008 Ubicación: Ica
Mensajes: 295
Antigüedad: 16 años, 3 meses Puntos: 0 | |
Convertir DBNull a Tipo String, no es valido Nuevamente saludos compañero de foros del web, espero me puedan dar una mano.
Al cargar el datagridview, por no tener ningun registro el grid esta en blanco.
El detalle esta que al hacer doble click en las celdas vacias, me sale el siguiente mensaje (Conversion from type 'DBNull' to type 'String' is not valid.)
dim vIndex as string
vIndex = Dgv1.CurrentRow.Index
vCodemp = Dgv1.Rows(vIndex).Cells(0).Value
if vCodemp=0 then
msgbox("No Hay Registros")
end if
- Cuando asigno el valor de una fila a una variable vCodemp de tipo string, me sale el mensaje. (Conversion from type 'DBNull' to type 'String' is not valid)
Agradesco de antemano la ayuda. |