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. DataGrid alterations...

DataGrid alterations...

Scheduled Pinned Locked Moved C#
databasequestion
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.
  • J Offline
    J Offline
    james cxx
    wrote on last edited by
    #1

    I have a DataGrid bound to source. The source table has a column that contains status numbers (integers), and the dataGrid shows these numbers. I have another table in the database which associates these numbers with a string. Does anyone know of a way I can make the dataGrid show the associated string (from the other table) instead of the numbers in the current table? -- James --

    A B 2 Replies Last reply
    0
    • J james cxx

      I have a DataGrid bound to source. The source table has a column that contains status numbers (integers), and the dataGrid shows these numbers. I have another table in the database which associates these numbers with a string. Does anyone know of a way I can make the dataGrid show the associated string (from the other table) instead of the numbers in the current table? -- James --

      A Offline
      A Offline
      A Wegierski
      wrote on last edited by
      #2

      Add next table to the DataSet with Your dictionary and create relation into it. See Expression property of DataColumn. It can do this association. Hi, AW

      1 Reply Last reply
      0
      • J james cxx

        I have a DataGrid bound to source. The source table has a column that contains status numbers (integers), and the dataGrid shows these numbers. I have another table in the database which associates these numbers with a string. Does anyone know of a way I can make the dataGrid show the associated string (from the other table) instead of the numbers in the current table? -- James --

        B Offline
        B Offline
        Braulio Dez
        wrote on last edited by
        #3

        Why don't you make a "Select" Query with a join and create a DataTable in memory to display it on the grid ? HTH Braulio

        J 1 Reply Last reply
        0
        • B Braulio Dez

          Why don't you make a "Select" Query with a join and create a DataTable in memory to display it on the grid ? HTH Braulio

          J Offline
          J Offline
          james cxx
          wrote on last edited by
          #4

          Thanks AW and Braulio for the ideas. I'll explore these. -- James --

          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