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. Data spread over multiple columns instead of one in gridview

Data spread over multiple columns instead of one in gridview

Scheduled Pinned Locked Moved ASP.NET
databasehelptutorialquestion
4 Posts 4 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.
  • F Offline
    F Offline
    flion87
    wrote on last edited by
    #1

    Hi all, I've got a problem to read data into multiple columns. I only retrieve one column from a database and automatically I get one column in my gridview, but that's not what I need, I need to get the data spread over multiple columns. For example: -> This is what I've got at the moment: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | -> This is what I need: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | Does anyone know how I can do this? Thanks in advance!

    Excuse me for my bad english. :)

    A S S 3 Replies Last reply
    0
    • F flion87

      Hi all, I've got a problem to read data into multiple columns. I only retrieve one column from a database and automatically I get one column in my gridview, but that's not what I need, I need to get the data spread over multiple columns. For example: -> This is what I've got at the moment: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | -> This is what I need: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | Does anyone know how I can do this? Thanks in advance!

      Excuse me for my bad english. :)

      S Offline
      S Offline
      Satish Mahapatra
      wrote on last edited by
      #2

      I think You should use Datalist for this case where you can set the RepeatColumns property and display the data.

      1 Reply Last reply
      0
      • F flion87

        Hi all, I've got a problem to read data into multiple columns. I only retrieve one column from a database and automatically I get one column in my gridview, but that's not what I need, I need to get the data spread over multiple columns. For example: -> This is what I've got at the moment: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | -> This is what I need: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | Does anyone know how I can do this? Thanks in advance!

        Excuse me for my bad english. :)

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Why you are not using Repeater Control then ?

        Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

        1 Reply Last reply
        0
        • F flion87

          Hi all, I've got a problem to read data into multiple columns. I only retrieve one column from a database and automatically I get one column in my gridview, but that's not what I need, I need to get the data spread over multiple columns. For example: -> This is what I've got at the moment: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | -> This is what I need: | data1 | | data2 | | data3 | | data4 | | data5 | | data6 | | data7 | Does anyone know how I can do this? Thanks in advance!

          Excuse me for my bad english. :)

          S Offline
          S Offline
          Sandesh M Patil
          wrote on last edited by
          #4

          Use Cursor

          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