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

datagrid

Scheduled Pinned Locked Moved C#
helptutorialquestion
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.
  • M Offline
    M Offline
    mdolby
    wrote on last edited by
    #1

    Hello, I have two tables, I wish to display the child table on the datagrid.. and a specific column from the parent table.. For example |column1|parentcolumn3|column2| The child table is related to the parent table via parentID, but this is not the parent column I wish to display..it is parenteColumnXX Can this be done on a dataGrid?? I do not want for the parent table to be displayed as a link neither I just want one specific parent column to be displayed in the same datagrid as the child table.. Hopefully I manage to explain the situation correctly.. And as always I really appreciate any help offered!! Thank you!

    I 2 Replies Last reply
    0
    • M mdolby

      Hello, I have two tables, I wish to display the child table on the datagrid.. and a specific column from the parent table.. For example |column1|parentcolumn3|column2| The child table is related to the parent table via parentID, but this is not the parent column I wish to display..it is parenteColumnXX Can this be done on a dataGrid?? I do not want for the parent table to be displayed as a link neither I just want one specific parent column to be displayed in the same datagrid as the child table.. Hopefully I manage to explain the situation correctly.. And as always I really appreciate any help offered!! Thank you!

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

      why sure you could but you will need to create either a view to maintain this or extend the grids functionality for data binding. I would try the first, first. You will need to create your own tablestyles collection see this web page

      1 Reply Last reply
      0
      • M mdolby

        Hello, I have two tables, I wish to display the child table on the datagrid.. and a specific column from the parent table.. For example |column1|parentcolumn3|column2| The child table is related to the parent table via parentID, but this is not the parent column I wish to display..it is parenteColumnXX Can this be done on a dataGrid?? I do not want for the parent table to be displayed as a link neither I just want one specific parent column to be displayed in the same datagrid as the child table.. Hopefully I manage to explain the situation correctly.. And as always I really appreciate any help offered!! Thank you!

        I Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        why sure you could but you will need to create either a view to maintain this or extend the grids functionality for data binding. I would try the first, first. You will need to create your own tablestyles collection see this web page Like, DUDE, it has all the answers man! nick I'm not an expert yet, but I play one at work. Yeah and here too.

        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