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. disable row

disable row

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasequestion
4 Posts 4 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.
  • J Offline
    J Offline
    jds1207
    wrote on last edited by
    #1

    How do you disable rows in SQL using vb.net? jds1207

    D N D 3 Replies Last reply
    0
    • J jds1207

      How do you disable rows in SQL using vb.net? jds1207

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Disable rows in a datbase table?? You don't. Using security in SQL Server, you can manage the access to the entire table, but not the individual rows.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      • J jds1207

        How do you disable rows in SQL using vb.net? jds1207

        N Offline
        N Offline
        nlarson11
        wrote on last edited by
        #3

        like Dave said, there is no "built-in" method. you can add a column to the table calling it "Enabled" or something and in your 'where' clause ask for all rows where Enabled=1

        1 Reply Last reply
        0
        • J jds1207

          How do you disable rows in SQL using vb.net? jds1207

          D Offline
          D Offline
          Drew
          wrote on last edited by
          #4

          Well, I know you can do that sort of thing in a Janus GridEX by using conditional formatting. Maybe you can tell it to hide rows. I believe there is a trial version on the web somewhere. It is possible you could mean columns, which is easy from a datatable in VB.NET. If you really need to, use some special conditional formatting code and move the rows you do not want to a separate table.

          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