Displaying vertical data

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

  1. #1

    Default Displaying vertical data

    I built a survey that, upon submission creates a record in my MS Sql database. Each record is comprised of 31 fields. I want to use a datagrid to display the data. My challenge is to restructure the data before it is displayed. For example, in my survey I am ranking 31 topics by 1 to 5 using RadioListbutton controls. So the data gets written to the database like so:

    id Topic1 Topic2 Topic3 Topic4 Topic5 Topic6 Topic7........
    1 5 5 3 2 5 2 1 -->Represents the ranking
    2 1 5 5 2 1 4 4
    3 4 4 3 5 2 4 5
    4 5 5 4 1 3 2 2

    When I pull the data out into the datagrid, I want to display it like so:

    Topics 5 4 3 2 1

    Topic1 190 205 216 139 143 -->represents the number of persons voting
    Topic2 207 196 194 115 134
    Topic3 199 185 198 114 146

    I apologize for being verbose but any help is greatly appreciated.
    Mike Harris Guest

  2. Similar Questions and Discussions

    1. cfgrid not displaying data
      Ask your host to check the CFIDE mapping. I had a similar issue. It should be mapped by default, but sometimes it is not. Hope that helps!
    2. Data Grid Cell Vertical Scroll Bar. High Importance
      Hi guys, i have a problem in asp.net data grid. If u have a solution let m know. Problem is such that i have a data grid with 2 columns. Columns...
    3. help displaying data
      I have a products table that which has 'Product_abbrev', 'SubType' and 'Product'. There is a value for all except 'SubType' - some products are...
    4. Displaying Foreign Key data
      I have a table in a database that refers to both string data and foreign key IDs. When I request information from the table, how do I display the...
    5. Data Browser vertical alignment problem
      We want to use the features of the data browser in an update to our existing C++ project, but I'm stuck on doing vertical alignment. Alignment...
  3. #2

    Default RE: Displaying vertical data

    Interesting, I did a similar formatting once, But it would be good if you
    could put down your examples properly... I believe curretly its overlapping
    cause of the less width??
    R.Thomas

    "Mike Harris" wrote:
    > I built a survey that, upon submission creates a record in my MS Sql database. Each record is comprised of 31 fields. I want to use a datagrid to display the data. My challenge is to restructure the data before it is displayed. For example, in my survey I am ranking 31 topics by 1 to 5 using RadioListbutton controls. So the data gets written to the database like so:
    >
    > id Topic1 Topic2 Topic3 Topic4 Topic5 Topic6 Topic7........
    > 1 5 5 3 2 5 2 1 -->Represents the ranking
    > 2 1 5 5 2 1 4 4
    > 3 4 4 3 5 2 4 5
    > 4 5 5 4 1 3 2 2
    >
    > When I pull the data out into the datagrid, I want to display it like so:
    >
    > Topics 5 4 3 2 1
    >
    > Topic1 190 205 216 139 143 -->represents the number of persons voting
    > Topic2 207 196 194 115 134
    > Topic3 199 185 198 114 146
    >
    > I apologize for being verbose but any help is greatly appreciated
    R. Thomas, aka Xtreme.Net 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