Results 1 to 3 of 3

Thread: GRIDVIEW or DATAGRID question

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    GRIDVIEW or DATAGRID question

    I need a way to basically take a GridView or DataSet control and turn the
    data on its side, so the data will be shown vertically instead of horizontally.

    I load the data from a DataSet object, so I can do it from the DataSet, if that's possible.

    Does anyone know how to do this?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: GRIDVIEW or DATAGRID question

    Explain 'vertically' in this context. Maybe a drawing or something.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2005
    Posts
    625

    Re: GRIDVIEW or DATAGRID question

    Basically, pivot the table on its side, like this:


    Sample table:

    Name AccountID PhoneNumber
    -------------------------------------
    John 123 x5555
    Bob 324 x1234


    convert to:


    Name John Bob
    AccountID 123 324
    PhoneNumber x5555 x1234

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width