Howto display an ASP.net datagrid rows as columns and vice versa?

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default Howto display an ASP.net datagrid rows as columns and vice versa?

    Hi

    I want to display my datagrid with the columns horizontal and rows vertical,
    so just the other way around. For example instead of :

    name address city
    Tom 200 George Street Sydney

    i would like:

    name Tom
    address 200 George Street
    city sydney

    ch

    Jim


    Jimmy Guest

  2. Similar Questions and Discussions

    1. Converting data from DataGrid to Java and vice versa
      Hi all! Here is what I try to do (some pseudo-code): I have some POJO in Java, lets say Person - pls see the attached code. Now, I also have...
    2. Problem with configurating Apache for CF and vice versa
      Hello, until now I was working with a static web site, using Dreamweaver MX on Apache 2.0.52. Now I was told to change it to be a dynamic one and...
    3. calling actions from a script and vice versa (CS)
      Hey I just realized that I can automate a lot of my workflow in illustrator with applescript (I never realized it was scriptable) and I'm running...
    4. Director to Flash converter and vice versa?
      Longshot but does anything exist to help (automatically) convert director to flash projects or vice versa (or even just convert Lingo to...
    5. Possible to read Textfile if other App accesses the same file + vice versa?
      Hi, I got two applications: Director and lets say 'xApp'. xApp writes a status (just a number) into a textfile every second. Director reads...
  3. #2

    Default Re: Howto display an ASP.net datagrid rows as columns and vice versa?

    Hi Jimmy,

    When Rendering to client-side, a datagrid actually is an html table. If your
    data is for view only, you can create your own html table based on your
    data. It's not big deal to show data horizontally in html table.



    HTH



    Elton Wang







    "Jimmy" <beffer@gmail.com> wrote in message
    news:uFoFkWOcFHA.3808@TK2MSFTNGP14.phx.gbl...
    > Hi
    >
    > I want to display my datagrid with the columns horizontal and rows
    vertical,
    > so just the other way around. For example instead of :
    >
    > name address city
    > Tom 200 George Street Sydney
    >
    > i would like:
    >
    > name Tom
    > address 200 George Street
    > city sydney
    >
    > ch
    >
    > Jim
    >
    >

    Elton Wang Guest

  4. #3

    Default Re: Howto display an ASP.net datagrid rows as columns and vice versa?

    Instead of having 3 columns (name, address, city), create a template column.
    In that column, create a table of two columns and 3 rows with the headings
    in the first column and label controls in the second column. Set the text
    property of the label controls to

    text='<%# Container.DataItem("fieldname")%>'


    "Jimmy" <beffer@gmail.com> wrote in message
    news:uFoFkWOcFHA.3808@TK2MSFTNGP14.phx.gbl...
    > Hi
    >
    > I want to display my datagrid with the columns horizontal and rows
    > vertical,
    > so just the other way around. For example instead of :
    >
    > name address city
    > Tom 200 George Street Sydney
    >
    > i would like:
    >
    > name Tom
    > address 200 George Street
    > city sydney
    >
    > ch
    >
    > Jim
    >
    >

    Kim Quigley Guest

  5. #4

    Default Re: Howto display an ASP.net datagrid rows as columns and vice versa?

    no use waste
    Unregistered Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139