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.