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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Displaying data in rows not columns!

Displaying data in rows not columns!

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

    Hi, I have a datagrid with a few columns. I am wondering how I can show the data in rows instead of columns. that's a little bit of how the codes look like now in datagrid: Columns> Thanx in advance.:) mammad

    C 1 Reply Last reply
    0
    • M mammad_k

      Hi, I have a datagrid with a few columns. I am wondering how I can show the data in rows instead of columns. that's a little bit of how the codes look like now in datagrid: Columns> Thanx in advance.:) mammad

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      You could try using a repeater control - you have more control over how the output looks. Of course, you will have to do a little more work to set it up.


      Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

      M 1 Reply Last reply
      0
      • C Colin Angus Mackay

        You could try using a repeater control - you have more control over how the output looks. Of course, you will have to do a little more work to set it up.


        Do you want to know more? WDevs.com - Member's Software Directories, Blogs, FTP, Mail and Forums

        M Offline
        M Offline
        mammad_k
        wrote on last edited by
        #3

        Hello there, Thanks for the reply. I am looking for some attributes that control how the datagrid pages through the data rows. I think in my case even if I use a repeater control I will have more rows of data but still in the same columns of titles. This is the look I have now: Name: Surname email X Y Z X1 Y1 Z1 And this is what I need to have: Name: X X1 Surname: Y Y1 Email: Z Z1 Thanks again, mammad

        A 1 Reply Last reply
        0
        • M mammad_k

          Hello there, Thanks for the reply. I am looking for some attributes that control how the datagrid pages through the data rows. I think in my case even if I use a repeater control I will have more rows of data but still in the same columns of titles. This is the look I have now: Name: Surname email X Y Z X1 Y1 Z1 And this is what I need to have: Name: X X1 Surname: Y Y1 Email: Z Z1 Thanks again, mammad

          A Offline
          A Offline
          aplope
          wrote on last edited by
          #4

          Just so happened I was browsing the Code Project site today and ran across this article: http://www.codeproject.com/aspnet/Datatable.asp It addresses the exact problem you mention here. Pegmeister

          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