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. Repeater Control?

Repeater Control?

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

    What is the best way by which to display summary information for my project on my webform? I need to display it as follows and cannot use a datagrid.

     Column         Column
    

    Row: Name Name
    Row: ID ID
    Row: Size Size

    With a column for each returned value from the database. There is no restriction to the number of "segments" returned, so I need to this to work if there is one segment or 5. I have a SQL query that accesses the information that I read from. I thought about using a repeater control, but I'm not sure how to do this.

    N C 2 Replies Last reply
    0
    • T Terick

      What is the best way by which to display summary information for my project on my webform? I need to display it as follows and cannot use a datagrid.

       Column         Column
      

      Row: Name Name
      Row: ID ID
      Row: Size Size

      With a column for each returned value from the database. There is no restriction to the number of "segments" returned, so I need to this to work if there is one segment or 5. I have a SQL query that accesses the information that I read from. I thought about using a repeater control, but I'm not sure how to do this.

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      Looks like you are trying to display tabular data. DataGrid/GridView is best for tabular data. :)

      Navaneeth How to use google | Ask smart questions

      1 Reply Last reply
      0
      • T Terick

        What is the best way by which to display summary information for my project on my webform? I need to display it as follows and cannot use a datagrid.

         Column         Column
        

        Row: Name Name
        Row: ID ID
        Row: Size Size

        With a column for each returned value from the database. There is no restriction to the number of "segments" returned, so I need to this to work if there is one segment or 5. I have a SQL query that accesses the information that I read from. I thought about using a repeater control, but I'm not sure how to do this.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Just have the repeater generate a table, and insert the named row, assuming that's what you need. Either way, all these controls create tables, and the datagrid will do it just fine, but you can do what it does easily with a repeater. By 'segments' do you mean columns ? A gridview is best for this, as it can just autogeneratecolumns for you.

        Christian Graus Driven to the arms of OSX by Vista.

        T 1 Reply Last reply
        0
        • C Christian Graus

          Just have the repeater generate a table, and insert the named row, assuming that's what you need. Either way, all these controls create tables, and the datagrid will do it just fine, but you can do what it does easily with a repeater. By 'segments' do you mean columns ? A gridview is best for this, as it can just autogeneratecolumns for you.

          Christian Graus Driven to the arms of OSX by Vista.

          T Offline
          T Offline
          Terick
          wrote on last edited by
          #4

          I ended up using a datalist instead of a repeater and was able to solve this issue. Thanks for your help!

          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