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. C#
  4. DataSet

DataSet

Scheduled Pinned Locked Moved C#
help
3 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.
  • S Offline
    S Offline
    simworld
    wrote on last edited by
    #1

    A table contains a,b,c columns a contains data. b and c Contains NULL Values. I fill dataset(ds) with the values of a,b,c if(ds.Tables[0].Rows[0]["b"].ToString()==Null ) textbox1.text="asd"; this condition is not satisfied,when comparing with value NULL ,they failed to compare and skip that condition. What other syntax I can use to solve that problem.

    P 1 Reply Last reply
    0
    • S simworld

      A table contains a,b,c columns a contains data. b and c Contains NULL Values. I fill dataset(ds) with the values of a,b,c if(ds.Tables[0].Rows[0]["b"].ToString()==Null ) textbox1.text="asd"; this condition is not satisfied,when comparing with value NULL ,they failed to compare and skip that condition. What other syntax I can use to solve that problem.

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      if(ds.Tables[0].Rows[0]["b"] == System.DBNull.Value)

      S 1 Reply Last reply
      0
      • P PIEBALDconsult

        if(ds.Tables[0].Rows[0]["b"] == System.DBNull.Value)

        S Offline
        S Offline
        simworld
        wrote on last edited by
        #3

        Thanks for your help

        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