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. Web Development
  3. ASP.NET
  4. Display horizontal rows of datagrid vertically.

Display horizontal rows of datagrid vertically.

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
4 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.
  • D Offline
    D Offline
    Deepml
    wrote on last edited by
    #1

    How to display horizontal rows of datagrid vertically?

    M 1 Reply Last reply
    0
    • D Deepml

      How to display horizontal rows of datagrid vertically?

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      You can use a TemplateColumn and concatenate data vertically.

      D 1 Reply Last reply
      0
      • M minhpc_bk

        You can use a TemplateColumn and concatenate data vertically.

        D Offline
        D Offline
        Deepml
        wrote on last edited by
        #3

        I tried the code given on http://www.codeproject.com/cs/database/Vertical\_rows\_in\_Datagrid.asp but it's not working.How can i concatenate the data vertically using TemplateColumn? Thanks for your reply.

        M 1 Reply Last reply
        0
        • D Deepml

          I tried the code given on http://www.codeproject.com/cs/database/Vertical\_rows\_in\_Datagrid.asp but it's not working.How can i concatenate the data vertically using TemplateColumn? Thanks for your reply.

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          Ah, I now can see what you mean, so forget about my first suggestion, and there are a couple of there are a couple of options come mind: + Use the Table control like the articlem and dynamically build the table. + If you want to use the datagrid control, you may think of rearranging the datasource in the expected format, and then bind it to the control. Basically, the column number should be dynamic, and you can have the datagrid control automatically generate the columns or you can do it on your own programmatically. Just an idea.

          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