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. Displaying Data Question ...

Displaying Data Question ...

Scheduled Pinned Locked Moved ASP.NET
questiondatabasetutorialannouncement
1 Posts 1 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
    DFU23
    wrote on last edited by
    #1

    I want to display data in the following format: Client Name #1     Project #1     Project #2 Client Name #2     Project #1     Project #2     Project #3 ... I am querying a database and bringing back the information in the format:

    CLIENT_NAME PROJECT_NAME
    Client Name #1 Project #1
    Client Name #1 Project #2
    Client Name #2 Project #1
    Client Name #2 Project #2
    Client Name #2 Project #3

    I would like to use a single DataSet, DataGrid or Repeater ... but is this possible? Any suggestions on how to do this because from what I can see there is not a way to make an ItemTemplate change its output when an item in the data has changed. For exmaple, when it finds a new CLIENT_NAME write it out once and then only display the PROJECT_NAME after that until it reaches the end or finds a new CLIENT_NAME.

    Wally Atkins
    Newport News, VA, USA

    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