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. Change value of datagridview

Change value of datagridview

Scheduled Pinned Locked Moved Visual Basic
database
4 Posts 3 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.
  • P Offline
    P Offline
    peterjc
    wrote on last edited by
    #1

    Hai, I use datagridview to display all the data from database. There is a field named userlevel in the database. The value stored in the database is '1', '2' and so on. So, when display in the datagridview, can it change the '1' to admin and '2'to power user and so on. Thank in advance.

    I J 2 Replies Last reply
    0
    • P peterjc

      Hai, I use datagridview to display all the data from database. There is a field named userlevel in the database. The value stored in the database is '1', '2' and so on. So, when display in the datagridview, can it change the '1' to admin and '2'to power user and so on. Thank in advance.

      I Offline
      I Offline
      ilprincipe
      wrote on last edited by
      #2

      Why do you not do it in the query?

      Il principe ;)

      P 1 Reply Last reply
      0
      • P peterjc

        Hai, I use datagridview to display all the data from database. There is a field named userlevel in the database. The value stored in the database is '1', '2' and so on. So, when display in the datagridview, can it change the '1' to admin and '2'to power user and so on. Thank in advance.

        J Offline
        J Offline
        Jamal Abdul Nasir
        wrote on last edited by
        #3

        i think u r having 2 tables to get data from. if this is the way then use views in the database. it will gona solve ur problem.

        J A Nasir K

        modified on Monday, April 28, 2008 8:41 AM

        1 Reply Last reply
        0
        • I ilprincipe

          Why do you not do it in the query?

          Il principe ;)

          P Offline
          P Offline
          peterjc
          wrote on last edited by
          #4

          Thank for the reply. could you show me how to use query to do it?

          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