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. GridView Session

GridView Session

Scheduled Pinned Locked Moved ASP.NET
questionhelp
3 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.
  • I Offline
    I Offline
    Illegal Operation
    wrote on last edited by
    #1

    Hi, I need some help. I have an aspx page called Services.aspx and a Page called OrderConfirmation.aspx. On the Services page the user can fill in the form that will allow him to specify quantity of orders. I save this information to an arraylist and then send this arraylist to the OrderConfirmation page using the Session variable. My question is this: I have added a gridview to the OrderConfirmation page and bind the data to the session variable. How can I display the results in their own columns? I am returning the ProductCode, Description and Quantity. At the moment they all display in one column. Thanks!!

    Illegal Operation

    V A 2 Replies Last reply
    0
    • I Illegal Operation

      Hi, I need some help. I have an aspx page called Services.aspx and a Page called OrderConfirmation.aspx. On the Services page the user can fill in the form that will allow him to specify quantity of orders. I save this information to an arraylist and then send this arraylist to the OrderConfirmation page using the Session variable. My question is this: I have added a gridview to the OrderConfirmation page and bind the data to the session variable. How can I display the results in their own columns? I am returning the ProductCode, Description and Quantity. At the moment they all display in one column. Thanks!!

      Illegal Operation

      V Offline
      V Offline
      Venkatesh Mookkan
      wrote on last edited by
      #2

      AFAIK, you can bind ArrayList to a GridView. Refer: MSDN[^] Try setting AutoGenerateColumns = True of the GridView.

      Castle Rider

      What if I freeze??? Don't forget to breath...

      My: Website | Yahoo Group | Blog Spot

      /xml>

      1 Reply Last reply
      0
      • I Illegal Operation

        Hi, I need some help. I have an aspx page called Services.aspx and a Page called OrderConfirmation.aspx. On the Services page the user can fill in the form that will allow him to specify quantity of orders. I save this information to an arraylist and then send this arraylist to the OrderConfirmation page using the Session variable. My question is this: I have added a gridview to the OrderConfirmation page and bind the data to the session variable. How can I display the results in their own columns? I am returning the ProductCode, Description and Quantity. At the moment they all display in one column. Thanks!!

        Illegal Operation

        A Offline
        A Offline
        Anurag Gandhi
        wrote on last edited by
        #3

        You can do this with arraylist also but i feel that things would be easier for you if you will use DataTable for the same.

        Anurag Gandhi.
        http://www.gandhisoft.com
        Life is a computer program and every one is the programmer of his own life.

        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