Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. how to handle Null Datagridview cell value

how to handle Null Datagridview cell value

Scheduled Pinned Locked Moved Visual Basic
databasehelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Widgets
    wrote on last edited by
    #1

    hi all! I can't rid of Cell value error from datagridview. dim mytext as string mytext = datagridview(0,3).index.value error occurs if cell value is null.

    J 1 Reply Last reply
    0
    • W Widgets

      hi all! I can't rid of Cell value error from datagridview. dim mytext as string mytext = datagridview(0,3).index.value error occurs if cell value is null.

      J Offline
      J Offline
      janmas
      wrote on last edited by
      #2

      Hello, You can use: If not isnull(datagridview(0,3).index.value) then mytext = datagridview(0,3).index.value End if

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups